uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
45
pkgs/development/tools/halfempty/default.nix
Normal file
45
pkgs/development/tools/halfempty/default.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{ lib, stdenv, fetchFromGitHub, fetchpatch, pkg-config, glib, util-linux, scowl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "halfempty";
|
||||
version = "0.40";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "googleprojectzero";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-YGq6fneAMo2jCpLPrjzRJ0eeOsStKaK5L+lwQfqcfpY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config util-linux ];
|
||||
buildInputs = [ glib ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
name = "fix-bash-specific-syntax.patch";
|
||||
url = "https://github.com/googleprojectzero/halfempty/commit/ad15964d0fcaba12e5aca65c8935ebe3f37d7ea3.patch";
|
||||
sha256 = "sha256:0hgdci0wwi5wyw8i57w0545cxjmsmswm1y6g4vhykap0y40zizav";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace test/Makefile \
|
||||
--replace '/usr/share/dict/words' '${scowl}/share/dict/words.txt'
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -vDt $out/bin halfempty
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
checkTarget = "test";
|
||||
|
||||
meta = {
|
||||
description = "Fast, parallel test case minimization tool";
|
||||
homepage = "https://github.com/googleprojectzero/halfempty/";
|
||||
maintainers = with lib.maintainers; [ fpletz ];
|
||||
license = with lib.licenses; [ asl20 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue