mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
gzip: add setup-hook to stop gzip from adding timestamps to headers
This commit is contained in:
parent
4f5b81cdcf
commit
a9d90273d8
@ -1,4 +1,8 @@
|
|||||||
{ stdenv, fetchurl, xz }:
|
{ stdenv
|
||||||
|
, fetchurl
|
||||||
|
, xz
|
||||||
|
, writeText
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "gzip";
|
pname = "gzip";
|
||||||
@ -26,6 +30,12 @@ stdenv.mkDerivation rec {
|
|||||||
}' $out/bin/*
|
}' $out/bin/*
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# set GZIP env variable to "-n" to stop gzip from adding timestamps
|
||||||
|
# to archive headers: https://github.com/NixOS/nixpkgs/issues/86348
|
||||||
|
setupHook = writeText "setup-hook" ''
|
||||||
|
export GZIP="-n"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://www.gnu.org/software/gzip/";
|
homepage = "https://www.gnu.org/software/gzip/";
|
||||||
description = "GNU zip compression program";
|
description = "GNU zip compression program";
|
||||||
|
Loading…
Reference in New Issue
Block a user