2020-07-18 13:30:00 +01:00
|
|
|
|
{ stdenv, file, fetchFromGitLab, buildPerlPackage, ArchiveZip, ArchiveCpio, shortenPerlShebang }:
|
2019-10-21 20:59:52 +01:00
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
2020-07-18 13:30:00 +01:00
|
|
|
|
nativeBuildInputs = stdenv.lib.optionals stdenv.isDarwin [ shortenPerlShebang ];
|
2019-10-21 20:59:52 +01:00
|
|
|
|
buildInputs = [ ArchiveZip ArchiveCpio 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
|
|
|
|
|
'';
|
|
|
|
|
|
2020-07-18 13:30:00 +01:00
|
|
|
|
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
|
|
|
|
|
shortenPerlShebang $out/bin/strip-nondeterminism
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-10-21 20:59:52 +01:00
|
|
|
|
description = "A Perl module for stripping bits of non-deterministic information";
|
2019-12-08 16:50:31 +00:00
|
|
|
|
homepage = "https://reproducible-builds.org/";
|
2019-10-21 20:59:52 +01:00
|
|
|
|
license = licenses.gpl3;
|
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
|
|
|
|
};
|
|
|
|
|
}
|