2021-12-17 03:53:54 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2013-10-06 16:18:44 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "haveged";
|
2022-02-15 22:53:15 +00:00
|
|
|
version = "1.9.17";
|
2013-10-06 16:18:44 +01:00
|
|
|
|
2021-12-17 03:53:54 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jirka-h";
|
|
|
|
repo = "haveged";
|
|
|
|
rev = "v${version}";
|
2022-02-15 22:53:15 +00:00
|
|
|
sha256 = "sha256-uVl+TZVMsf+9aRATQndYMK4l4JfOBvstd1O2nTHyMYU=";
|
2013-10-06 16:18:44 +01:00
|
|
|
};
|
|
|
|
|
2021-12-17 03:53:54 +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; {
|
2013-10-06 16:18:44 +01:00
|
|
|
description = "A simple entropy daemon";
|
|
|
|
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
|
2014-12-30 02:31:03 +00:00
|
|
|
of haveged is directed towards improving overall reliability and adaptability while minimizing
|
2013-10-06 16:18:44 +01:00
|
|
|
the barriers to using haveged for other tasks.
|
|
|
|
'';
|
2021-12-17 03:53:54 +00:00
|
|
|
homepage = "https://github.com/jirka-h/haveged";
|
2022-02-15 22:53:15 +00:00
|
|
|
changelog = "https://raw.githubusercontent.com/jirka-h/haveged/v${version}/ChangeLog";
|
|
|
|
license = licenses.gpl3Plus;
|
2021-12-17 03:53:54 +00:00
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
|
|
platforms = platforms.unix;
|
2022-02-15 22:53:15 +00:00
|
|
|
badPlatforms = platforms.darwin; # fails to build since v1.9.15
|
2013-10-06 16:18:44 +01:00
|
|
|
};
|
|
|
|
}
|