diff options
author | Farid Zakaria <fmzakari@google.com> | 2021-06-27 20:08:08 -0700 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2021-06-29 20:51:50 -0700 |
commit | 3987b0e48124cc0117783ae8f5b8edec501711cb (patch) | |
tree | 5637f34ca6c4e9c2d6bd3ccfd22ef4720909c872 /pkgs/development/perl-modules | |
parent | 0d8cbf704cace86734d93d2b49a821e05b1d8bde (diff) |
strip-nondeterminism: file to propagatedBuildInput
`file` is used by the perl script. ``` sub _get_file_type($) { my $file=shift; open(FILE, '-|') # handle all filenames safely || exec('file', $file) || die "can't exec file: $!"; my $type=<FILE>; close FILE; return $type; } ``` This script is very handy to run within a `nix-build` context, specifically during the fixupPhase. Unfortunately, file is not propagated, and does not exist causing the build to fail. Fix it by adding it. Co-authored-by: Jonathan Ringer <jonringer@users.noreply.github.com>
Diffstat (limited to 'pkgs/development/perl-modules')
-rw-r--r-- | pkgs/development/perl-modules/strip-nondeterminism/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/perl-modules/strip-nondeterminism/default.nix b/pkgs/development/perl-modules/strip-nondeterminism/default.nix index 20463ed242509..bdbd1a8164346 100644 --- a/pkgs/development/perl-modules/strip-nondeterminism/default.nix +++ b/pkgs/development/perl-modules/strip-nondeterminism/default.nix @@ -18,7 +18,8 @@ buildPerlPackage rec { doCheck = false; nativeBuildInputs = lib.optionals stdenv.isDarwin [ shortenPerlShebang ]; - buildInputs = [ ArchiveZip ArchiveCpio file ]; + buildInputs = [ ArchiveZip ArchiveCpio ]; + propagatedNativeBuildInputs = [ file ]; perlPostHook = '' # we don’t need the debhelper script |