2018-10-23 22:36:57 +01:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "jitterentropy";
|
2019-10-07 13:17:51 +01:00
|
|
|
version = "2.2.0";
|
2018-10-23 22:36:57 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "smuellerDD";
|
|
|
|
repo = "jitterentropy-library";
|
|
|
|
rev = "v${version}";
|
2019-10-07 13:17:51 +01:00
|
|
|
sha256 = "0n2l1fxr7bynnarpwdjifb2fvlsq8w5wmfh31yk5nrc756cjlgyw";
|
2018-10-23 22:36:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/include
|
|
|
|
'';
|
|
|
|
|
|
|
|
installFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Provides a noise source using the CPU execution timing jitter";
|
|
|
|
homepage = https://github.com/smuellerDD/jitterentropy-library;
|
|
|
|
license = with stdenv.lib.licenses; [ gpl2 bsd3 ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ johnazoidberg ];
|
|
|
|
};
|
|
|
|
}
|