unzip: *Flags are lists
This commit is contained in:
parent
53cbd1b7bf
commit
e49f0d4985
1 changed files with 10 additions and 4 deletions
|
@ -13,7 +13,7 @@ stdenv.mkDerivation {
|
|||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
patchFlags = "-p1 -F3";
|
||||
patchFlags = [ "-p1" "-F3" ];
|
||||
|
||||
patches = [
|
||||
./CVE-2014-8139.diff
|
||||
|
@ -53,15 +53,21 @@ stdenv.mkDerivation {
|
|||
|
||||
makefile = "unix/Makefile";
|
||||
|
||||
NIX_LDFLAGS = [ "-lbz2" ] ++ stdenv.lib.optional enableNLS "-lnatspec";
|
||||
NIX_LDFLAGS = "-lbz2" + stdenv.lib.optionalString enableNLS " -lnatspec";
|
||||
|
||||
buildFlags = "generic D_USE_BZ2=-DUSE_BZIP2 L_BZ2=-lbz2";
|
||||
buildFlags = [
|
||||
"generic"
|
||||
"D_USE_BZ2=-DUSE_BZIP2"
|
||||
"L_BZ2=-lbz2"
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
sed -i -e 's@CF="-O3 -Wall -I. -DASM_CRC $(LOC)"@CF="-O3 -Wall -I. -DASM_CRC -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(LOC)"@' unix/Makefile
|
||||
'';
|
||||
|
||||
installFlags = "prefix=$(out)";
|
||||
installFlags = [
|
||||
"prefix=${placeholder ''out''}"
|
||||
];
|
||||
|
||||
setupHook = ./setup-hook.sh;
|
||||
|
||||
|
|
Loading…
Reference in a new issue