diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2020-07-18 11:27:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-18 11:27:36 -0500 |
commit | c28899b9c60177e2089ff563729db72ffdf9ac26 (patch) | |
tree | 80678787763f7a394ca6aede6d3e7ad9cf74c597 /pkgs | |
parent | a5cc7d3197705f933d88e97c0c61849219ce76c1 (diff) | |
parent | 5868f8f306cee9c81afdfa81d08e7e8b54b025f1 (diff) |
Merge pull request #93427 from marsam/fix-strip-nondeterminism-darwin
strip-nondeterminism: fix build on darwin
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/perl-modules/strip-nondeterminism/default.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/development/perl-modules/strip-nondeterminism/default.nix b/pkgs/development/perl-modules/strip-nondeterminism/default.nix index 7ac0b82ed1011..3557ed68cec6f 100644 --- a/pkgs/development/perl-modules/strip-nondeterminism/default.nix +++ b/pkgs/development/perl-modules/strip-nondeterminism/default.nix @@ -1,4 +1,4 @@ -{ lib, file, fetchFromGitLab, buildPerlPackage, ArchiveZip, ArchiveCpio }: +{ stdenv, file, fetchFromGitLab, buildPerlPackage, ArchiveZip, ArchiveCpio, shortenPerlShebang }: buildPerlPackage rec { pname = "strip-nondeterminism"; @@ -17,6 +17,7 @@ buildPerlPackage rec { # stray test failure doCheck = false; + nativeBuildInputs = stdenv.lib.optionals stdenv.isDarwin [ shortenPerlShebang ]; buildInputs = [ ArchiveZip ArchiveCpio file ]; perlPostHook = '' @@ -25,7 +26,11 @@ buildPerlPackage rec { rm $out/share/man/man1/dh_strip_nondeterminism.1.gz ''; - meta = with lib; { + postInstall = stdenv.lib.optionalString stdenv.isDarwin '' + shortenPerlShebang $out/bin/strip-nondeterminism + ''; + + meta = with stdenv.lib; { description = "A Perl module for stripping bits of non-deterministic information"; homepage = "https://reproducible-builds.org/"; license = licenses.gpl3; |