summary refs log tree commit diff
path: root/pkgs/os-specific/linux/multipath-tools
diff options
context:
space:
mode:
authorJoachim Fasting <joachifm@fastmail.fm>2016-12-19 14:31:06 +0100
committerJoachim Fasting <joachifm@fastmail.fm>2016-12-20 15:31:55 +0100
commit6758d157d23dfb548d43c896a6f9092039684517 (patch)
treeb6df30a8d7d27fca2fcf9e8e7ba5398f103e89fe /pkgs/os-specific/linux/multipath-tools
parent3e92b56be35605923b1f29f3f335aac1e2764065 (diff)
downloadnixpkgs-6758d157d23dfb548d43c896a6f9092039684517.tar
nixpkgs-6758d157d23dfb548d43c896a6f9092039684517.tar.gz
nixpkgs-6758d157d23dfb548d43c896a6f9092039684517.tar.bz2
nixpkgs-6758d157d23dfb548d43c896a6f9092039684517.tar.lz
nixpkgs-6758d157d23dfb548d43c896a6f9092039684517.tar.xz
nixpkgs-6758d157d23dfb548d43c896a6f9092039684517.tar.zst
nixpkgs-6758d157d23dfb548d43c896a6f9092039684517.zip
multipath-tools: ensure gzip does not capture timestamp
gzip is originally called as 'gzip -9 -c'

This is a port of
https://github.com/NixOS/nixpkgs/pull/2281/commits/a8e7ddd1dfaae4b3ce97fdefe4614a3e31c04501

Note that it does not seem to make a difference to `nix-build --check`.
Diffstat (limited to 'pkgs/os-specific/linux/multipath-tools')
-rw-r--r--pkgs/os-specific/linux/multipath-tools/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/multipath-tools/default.nix b/pkgs/os-specific/linux/multipath-tools/default.nix
index f60ece0fcec..0e0178e8845 100644
--- a/pkgs/os-specific/linux/multipath-tools/default.nix
+++ b/pkgs/os-specific/linux/multipath-tools/default.nix
@@ -15,6 +15,8 @@ stdenv.mkDerivation rec {
     ' libmultipath/defaults.h
     sed -i -e 's,\$(DESTDIR)/\(usr/\)\?,$(prefix)/,g' \
       kpartx/Makefile libmpathpersist/Makefile
+    sed -i -e "s,GZIP = .*, GZIP = gzip -9n -c," \
+      Makefile.inc
   '';
 
   nativeBuildInputs = [ gzip ];