2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "haveged";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "1.9.18";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jirka-h";
|
|
|
|
repo = "haveged";
|
|
|
|
rev = "v${version}";
|
2022-06-16 17:23:12 +00:00
|
|
|
hash = "sha256-fyL/J2A13ap582j4gdC8u63Ah67Old+BaO/CLyEeN/g=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs ent # test shebang
|
|
|
|
'';
|
|
|
|
|
|
|
|
installFlags = [
|
|
|
|
"sbindir=$(out)/bin" # no reason for us to have a $out/sbin, its just a symlink to $out/bin
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Simple entropy daemon";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "haveged";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
The haveged project is an attempt to provide an easy-to-use, unpredictable
|
|
|
|
random number generator based upon an adaptation of the HAVEGE algorithm.
|
|
|
|
Haveged was created to remedy low-entropy conditions in the Linux random device
|
|
|
|
that can occur under some workloads, especially on headless servers. Current development
|
|
|
|
of haveged is directed towards improving overall reliability and adaptability while minimizing
|
|
|
|
the barriers to using haveged for other tasks.
|
|
|
|
'';
|
2022-02-10 20:34:41 +00:00
|
|
|
homepage = "https://github.com/jirka-h/haveged";
|
2022-02-20 05:27:41 +00:00
|
|
|
changelog = "https://raw.githubusercontent.com/jirka-h/haveged/v${version}/ChangeLog";
|
|
|
|
license = licenses.gpl3Plus;
|
2022-02-10 20:34:41 +00:00
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
|
|
platforms = platforms.unix;
|
2022-02-20 05:27:41 +00:00
|
|
|
badPlatforms = platforms.darwin; # fails to build since v1.9.15
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|