diff options
author | Tobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com> | 2016-01-26 06:12:23 +0100 |
---|---|---|
committer | Tobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com> | 2016-01-26 06:13:05 +0100 |
commit | efc359c23135ebccc2835b37513f01adf73e2dac (patch) | |
tree | 127c9a2af9ab6bf08fd4c88f734fe314d46782c8 /pkgs/tools/compression | |
parent | af911744fdbb10cc21d3267c09adc9a06c53d9f3 (diff) | |
download | nixlib-efc359c23135ebccc2835b37513f01adf73e2dac.tar nixlib-efc359c23135ebccc2835b37513f01adf73e2dac.tar.gz nixlib-efc359c23135ebccc2835b37513f01adf73e2dac.tar.bz2 nixlib-efc359c23135ebccc2835b37513f01adf73e2dac.tar.lz nixlib-efc359c23135ebccc2835b37513f01adf73e2dac.tar.xz nixlib-efc359c23135ebccc2835b37513f01adf73e2dac.tar.zst nixlib-efc359c23135ebccc2835b37513f01adf73e2dac.zip |
lz4: be just a bit more reproducible
Diffstat (limited to 'pkgs/tools/compression')
-rw-r--r-- | pkgs/tools/compression/lz4/default.nix | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/tools/compression/lz4/default.nix b/pkgs/tools/compression/lz4/default.nix index 8340ea3fe8b0..cdc42e4b8488 100644 --- a/pkgs/tools/compression/lz4/default.nix +++ b/pkgs/tools/compression/lz4/default.nix @@ -11,8 +11,17 @@ stdenv.mkDerivation rec { owner = "Cyan4973"; }; + patches = [ ./install-on-freebsd.patch ] ; + buildInputs = stdenv.lib.optional doCheck valgrind; + # An ever-changing __DATE__ isn't very reproducible, so we must override it. + # But rather than displaying "()" or 1970, let --version show useful info: + NIX_CFLAGS_COMPILE = [ + ''-D__DATE__="${stdenv.cc.cc.name}"'' + "-Wno-builtin-macro-redefined" + ]; + enableParallelBuilding = true; makeFlags = [ "PREFIX=$(out)" ]; @@ -20,8 +29,6 @@ stdenv.mkDerivation rec { doCheck = false; # tests take a very long time checkTarget = "test"; - patches = [ ./install-on-freebsd.patch ] ; - meta = with stdenv.lib; { description = "Extremely fast compression algorithm"; longDescription = '' |