strip-nondeterminism: fix build on darwin
This commit is contained in:
parent
b907241a66
commit
5868f8f306
@ -1,4 +1,4 @@
|
|||||||
{ lib, file, fetchFromGitLab, buildPerlPackage, ArchiveZip, ArchiveCpio }:
|
{ stdenv, file, fetchFromGitLab, buildPerlPackage, ArchiveZip, ArchiveCpio, shortenPerlShebang }:
|
||||||
|
|
||||||
buildPerlPackage rec {
|
buildPerlPackage rec {
|
||||||
pname = "strip-nondeterminism";
|
pname = "strip-nondeterminism";
|
||||||
@ -17,6 +17,7 @@ buildPerlPackage rec {
|
|||||||
# stray test failure
|
# stray test failure
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
nativeBuildInputs = stdenv.lib.optionals stdenv.isDarwin [ shortenPerlShebang ];
|
||||||
buildInputs = [ ArchiveZip ArchiveCpio file ];
|
buildInputs = [ ArchiveZip ArchiveCpio file ];
|
||||||
|
|
||||||
perlPostHook = ''
|
perlPostHook = ''
|
||||||
@ -25,7 +26,11 @@ buildPerlPackage rec {
|
|||||||
rm $out/share/man/man1/dh_strip_nondeterminism.1.gz
|
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";
|
description = "A Perl module for stripping bits of non-deterministic information";
|
||||||
homepage = "https://reproducible-builds.org/";
|
homepage = "https://reproducible-builds.org/";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user