2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2022-01-27 15:55:30 +00:00
|
|
|
|
2018-10-23 21:36:57 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "jitterentropy";
|
2022-01-27 15:55:30 +00:00
|
|
|
version = "3.3.1";
|
2018-10-23 21:36:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "smuellerDD";
|
|
|
|
repo = "jitterentropy-library";
|
|
|
|
rev = "v${version}";
|
2022-01-27 15:55:30 +00:00
|
|
|
hash = "sha256-go7eGwBoZ58LkgKL7t8oZSc1cFlE6fPOT/ML3Aa8+CM=";
|
2018-10-23 21:36:57 +00:00
|
|
|
};
|
|
|
|
|
2022-01-27 15:55:30 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
2018-10-23 21:36:57 +00:00
|
|
|
|
2022-01-27 15:55:30 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
hardeningDisable = [ "fortify" ]; # avoid warnings
|
2018-10-23 21:36:57 +00:00
|
|
|
|
|
|
|
installFlags = [
|
2022-01-27 15:55:30 +00:00
|
|
|
"PREFIX=${placeholder "out"}"
|
2018-10-23 21:36:57 +00:00
|
|
|
];
|
|
|
|
|
2022-01-27 15:55:30 +00:00
|
|
|
meta = with lib; {
|
2018-10-23 21:36:57 +00:00
|
|
|
description = "Provides a noise source using the CPU execution timing jitter";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/smuellerDD/jitterentropy-library";
|
2022-01-27 15:55:30 +00:00
|
|
|
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 ];
|
2018-10-23 21:36:57 +00:00
|
|
|
};
|
|
|
|
}
|