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
|
|
@ -0,0 +1,40 @@
|
|||
{ lib, stdenv, file, fetchFromGitLab, buildPerlPackage, ArchiveZip, ArchiveCpio, shortenPerlShebang }:
|
||||
|
||||
buildPerlPackage rec {
|
||||
pname = "strip-nondeterminism";
|
||||
version = "1.0.0";
|
||||
|
||||
outputs = [ "out" "dev" ]; # no "devdoc"
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "reproducible-builds";
|
||||
repo = "strip-nondeterminism";
|
||||
domain = "salsa.debian.org";
|
||||
rev = version;
|
||||
sha256 = "1pwar1fyadqxmvb7x4zyw2iawbi5lsfjcg0ps9n9rdjb6an7vv64";
|
||||
};
|
||||
|
||||
# stray test failure
|
||||
doCheck = false;
|
||||
|
||||
nativeBuildInputs = lib.optionals stdenv.isDarwin [ shortenPerlShebang ];
|
||||
buildInputs = [ ArchiveZip ArchiveCpio ];
|
||||
propagatedNativeBuildInputs = [ file ];
|
||||
|
||||
perlPostHook = ''
|
||||
# we don’t need the debhelper script
|
||||
rm $out/bin/dh_strip_nondeterminism
|
||||
rm $out/share/man/man1/dh_strip_nondeterminism.1.gz
|
||||
'';
|
||||
|
||||
postInstall = lib.optionalString stdenv.isDarwin ''
|
||||
shortenPerlShebang $out/bin/strip-nondeterminism
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Perl module for stripping bits of non-deterministic information";
|
||||
homepage = "https://reproducible-builds.org/";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ pSub ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue