2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2018-10-23 23:36:57 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "jitterentropy";
|
2019-10-07 14:17:51 +02:00
|
|
|
version = "2.2.0";
|
2018-10-23 23:36:57 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "smuellerDD";
|
|
|
|
repo = "jitterentropy-library";
|
|
|
|
rev = "v${version}";
|
2019-10-07 14:17:51 +02:00
|
|
|
sha256 = "0n2l1fxr7bynnarpwdjifb2fvlsq8w5wmfh31yk5nrc756cjlgyw";
|
2018-10-23 23:36:57 +02:00
|
|
|
};
|
2020-01-07 10:26:53 +01:00
|
|
|
patches = [
|
|
|
|
# Can be removed when upgrading beyond 2.2.0
|
|
|
|
./reproducible-manpages.patch
|
|
|
|
];
|
2018-10-23 23:36:57 +02:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/include
|
2019-11-13 00:57:07 +01:00
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace "install -m 0755 -s" \
|
|
|
|
'install -m 0755 -s --strip-program $(STRIP)'
|
2018-10-23 23:36:57 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
installFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Provides a noise source using the CPU execution timing jitter";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/smuellerDD/jitterentropy-library";
|
2021-01-21 18:00:13 +01:00
|
|
|
license = with lib.licenses; [ gpl2 bsd3 ];
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = with lib.maintainers; [ johnazoidberg ];
|
2018-10-23 23:36:57 +02:00
|
|
|
};
|
|
|
|
}
|