mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-29 16:24:10 +00:00
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>
This commit is contained in:
parent
0d8cbf704c
commit
3987b0e481
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user