mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 14:41:17 +00:00
perl: make reproducible
Perl likes to capture impure data, needlessly. - Configure time (cf_time): make 1 second past epoch - Target system (uname): use less uname information
This commit is contained in:
parent
2b344e6a74
commit
df8b6728a8
|
@ -88,7 +88,10 @@ let
|
|||
|
||||
enableParallelBuilding = !crossCompiling;
|
||||
|
||||
preConfigure = optionalString (!crossCompiling) ''
|
||||
preConfigure = ''
|
||||
substituteInPlace ./Configure --replace '`LC_ALL=C; LANGUAGE=C; export LC_ALL; export LANGUAGE; $date 2>&1`' 'Thu Jan 1 00:00:01 UTC 1970'
|
||||
substituteInPlace ./Configure --replace '$uname -a' '$uname --kernel-name --machine --operating-system'
|
||||
'' + optionalString (!crossCompiling) ''
|
||||
configureFlags="$configureFlags -Dprefix=$out -Dman1dir=$out/share/man/man1 -Dman3dir=$out/share/man/man3"
|
||||
'' + optionalString (stdenv.isAarch32 || stdenv.isMips) ''
|
||||
configureFlagsArray=(-Dldflags="-lm -lrt")
|
||||
|
|
Loading…
Reference in a new issue