depot/third_party/nixpkgs/pkgs/tools/security/haveged/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

47 lines
1.4 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "haveged";
version = "1.9.18";
src = fetchFromGitHub {
owner = "jirka-h";
repo = "haveged";
rev = "v${version}";
hash = "sha256-fyL/J2A13ap582j4gdC8u63Ah67Old+BaO/CLyEeN/g=";
};
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; {
description = "Simple entropy daemon";
mainProgram = "haveged";
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.
'';
homepage = "https://github.com/jirka-h/haveged";
changelog = "https://raw.githubusercontent.com/jirka-h/haveged/v${version}/ChangeLog";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ domenkozar ];
platforms = platforms.unix;
badPlatforms = platforms.darwin; # fails to build since v1.9.15
};
}