1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

jitterentropy: make man pages reproducible

This commit is contained in:
Arnout Engelen 2020-01-07 10:26:53 +01:00
parent 9beb0d1ac2
commit 96167307bd
2 changed files with 17 additions and 0 deletions

View file

@ -9,6 +9,10 @@ stdenv.mkDerivation rec {
rev = "v${version}";
sha256 = "0n2l1fxr7bynnarpwdjifb2fvlsq8w5wmfh31yk5nrc756cjlgyw";
};
patches = [
# Can be removed when upgrading beyond 2.2.0
./reproducible-manpages.patch
];
enableParallelBuilding = true;

View file

@ -0,0 +1,13 @@
diff --git a/Makefile b/Makefile
index 4ff069b..3b8714a 100644
--- a/Makefile
+++ b/Makefile
@@ -58,7 +58,7 @@ cppcheck:
install:
install -d -m 0755 $(DESTDIR)$(PREFIX)/share/man/man3
install -m 644 doc/$(NAME).3 $(DESTDIR)$(PREFIX)/share/man/man3/
- gzip -9 $(DESTDIR)$(PREFIX)/share/man/man3/$(NAME).3
+ gzip -n -9 $(DESTDIR)$(PREFIX)/share/man/man3/$(NAME).3
install -d -m 0755 $(DESTDIR)$(PREFIX)/$(LIBDIR)
install -m 0755 -s lib$(NAME).so.$(LIBVERSION) $(DESTDIR)$(PREFIX)/$(LIBDIR)/
install -d -m 0755 $(DESTDIR)$(PREFIX)/$(INCDIR)