jitterentropy: 2.2.0 -> 3.3.1

Split outputs to put headers aside
main
c0bw3b 2 years ago
parent b3a390543b
commit b30014d473
  1. 30
      pkgs/development/libraries/jitterentropy/default.nix
  2. 13
      pkgs/development/libraries/jitterentropy/reproducible-manpages.patch

@ -1,37 +1,31 @@
{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "jitterentropy";
version = "2.2.0";
version = "3.3.1";
src = fetchFromGitHub {
owner = "smuellerDD";
repo = "jitterentropy-library";
rev = "v${version}";
sha256 = "0n2l1fxr7bynnarpwdjifb2fvlsq8w5wmfh31yk5nrc756cjlgyw";
hash = "sha256-go7eGwBoZ58LkgKL7t8oZSc1cFlE6fPOT/ML3Aa8+CM=";
};
patches = [
# Can be removed when upgrading beyond 2.2.0
./reproducible-manpages.patch
];
enableParallelBuilding = true;
outputs = [ "out" "dev" ];
preInstall = ''
mkdir -p $out/include
substituteInPlace Makefile \
--replace "install -m 0755 -s" \
'install -m 0755 -s --strip-program $(STRIP)'
'';
enableParallelBuilding = true;
hardeningDisable = [ "fortify" ]; # avoid warnings
installFlags = [
"PREFIX=$(out)"
"PREFIX=${placeholder "out"}"
];
meta = {
meta = with lib; {
description = "Provides a noise source using the CPU execution timing jitter";
homepage = "https://github.com/smuellerDD/jitterentropy-library";
license = with lib.licenses; [ gpl2 bsd3 ];
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ johnazoidberg ];
changelog = "https://github.com/smuellerDD/jitterentropy-library/raw/v${version}/CHANGES.md";
license = with licenses; [ bsd3 /* OR */ gpl2Only ];
platforms = platforms.linux;
maintainers = with maintainers; [ johnazoidberg c0bw3b ];
};
}

@ -1,13 +0,0 @@
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)
Loading…
Cancel
Save