Merge branch 'staging', containing closure-size #7701
This commit is contained in:
@@ -41,6 +41,8 @@ in stdenv.mkDerivation {
|
||||
postInstall = "";
|
||||
};
|
||||
|
||||
outputs = [ "dev" "bin" "static" ] ++ stdenv.lib.optional sharedLibrary "out";
|
||||
|
||||
preBuild = stdenv.lib.optionalString sharedLibrary ''
|
||||
make -f ${if stdenv.isDarwin then "Makefile-libbz2_dylib" else "Makefile-libbz2_so"}
|
||||
'';
|
||||
@@ -61,12 +63,15 @@ in stdenv.mkDerivation {
|
||||
)
|
||||
'');
|
||||
|
||||
installFlags = [ "PREFIX=$(out)" ];
|
||||
installFlags = [ "PREFIX=$(bin)" ];
|
||||
|
||||
postInstall = ''
|
||||
rm $out/bin/bunzip2* $out/bin/bzcat*
|
||||
ln -s bzip2 $out/bin/bunzip2
|
||||
ln -s bzip2 $out/bin/bzcat
|
||||
rm $bin/bin/bunzip2* $bin/bin/bzcat*
|
||||
ln -s bzip2 $bin/bin/bunzip2
|
||||
ln -s bzip2 $bin/bin/bzcat
|
||||
|
||||
mkdir "$static"
|
||||
mv "$bin/lib" "$static/"
|
||||
'';
|
||||
|
||||
postPatch = ''
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl }:
|
||||
{ stdenv, fetchurl, xz }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "gzip-1.6";
|
||||
@@ -8,8 +8,12 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0ivqnbhiwd12q8hp3qw6rpsrpw2jg5y2mymk8cn22lsx90dfvprp";
|
||||
};
|
||||
|
||||
outputs = [ "out" "man" "info" ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
buildInputs = [ xz.bin ];
|
||||
|
||||
preConfigure = if stdenv.isCygwin then ''
|
||||
sed -i lib/fpending.h -e 's,include <stdio_ext.h>,,'
|
||||
'' else null;
|
||||
|
||||
@@ -12,8 +12,8 @@ stdenv.mkDerivation {
|
||||
mkdir -p $out/bin
|
||||
cp kzip zipmix $out/bin
|
||||
|
||||
patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux.so.2 $out/bin/kzip
|
||||
patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux.so.2 $out/bin/zipmix
|
||||
patchelf --set-interpreter ${stdenv.glibc.out}/lib/ld-linux.so.2 $out/bin/kzip
|
||||
patchelf --set-interpreter ${stdenv.glibc.out}/lib/ld-linux.so.2 $out/bin/zipmix
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
||||
@@ -20,7 +20,7 @@ stdenv.mkDerivation {
|
||||
gcc -o pxz pxz.c -llzma \
|
||||
-fopenmp -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O2 \
|
||||
-DPXZ_BUILD_DATE=\"nixpkgs\" \
|
||||
-DXZ_BINARY=\"${xz}/bin/xz\" \
|
||||
-DXZ_BINARY=\"${xz.bin}/bin/xz\" \
|
||||
-DPXZ_VERSION=\"${version}\"
|
||||
'';
|
||||
|
||||
|
||||
@@ -8,6 +8,8 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1da071wyx921pyx3zkxlnbpp14p6km98pnp66mg1arwi9dxgbxbg";
|
||||
};
|
||||
|
||||
outputs = [ "dev" "out" "bin" "man" "doc" ];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
# In stdenv-linux, prevent a dependency on bootstrap-tools.
|
||||
|
||||
Reference in New Issue
Block a user