Merge remote-tracking branch 'upstream/master' into hardened-stdenv

This commit is contained in:
Robin Gloster
2016-04-18 13:00:40 +00:00
1369 changed files with 35810 additions and 10571 deletions

View File

@@ -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 = ''

View File

@@ -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;

View File

@@ -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 = {

View File

@@ -1,14 +1,14 @@
{ stdenv, fetchurl, bzip2 }:
let major = "1.1";
version = "${major}.12";
version = "${major}.13";
in
stdenv.mkDerivation rec {
name = "pbzip2-${version}";
src = fetchurl {
url = "https://launchpad.net/pbzip2/${major}/${version}/+download/${name}.tar.gz";
sha256 = "1vk6065dv3a47p86vmp8hv3n1ygd9hraz0gq89gvzlx7lmcb6fsp";
sha256 = "1rnvgcdixjzbrmcr1nv9b6ccrjfrhryaj7jwz28yxxv6lam3xlcg";
};
buildInputs = [ bzip2 ];

View File

@@ -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}\"
'';

View File

@@ -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.

View File

@@ -3,10 +3,10 @@
stdenv.mkDerivation rec {
name = "zstd-${version}";
version = "0.5.1";
version = "0.6.0";
src = fetchFromGitHub {
sha256 = "18mfrq5fqd7gkkqrgc32rlb98vw45rq1vsbrg44bprg3mv6ca3ls";
sha256 = "1r1l4pak289bjnkak2yrw65yhxfvqcmdsh10c1k0hi0wm7k3qcbw";
rev = "v${version}";
repo = "zstd";
owner = "Cyan4973";