Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, fetchFromGitHub 4}: 5 6stdenv.mkDerivation rec { 7 pname = "haveged"; 8 version = "1.9.18"; 9 10 src = fetchFromGitHub { 11 owner = "jirka-h"; 12 repo = "haveged"; 13 rev = "v${version}"; 14 hash = "sha256-fyL/J2A13ap582j4gdC8u63Ah67Old+BaO/CLyEeN/g="; 15 }; 16 17 strictDeps = true; 18 19 postPatch = '' 20 patchShebangs ent # test shebang 21 ''; 22 23 installFlags = [ 24 "sbindir=$(out)/bin" # no reason for us to have a $out/sbin, its just a symlink to $out/bin 25 ]; 26 27 doCheck = true; 28 29 meta = with lib; { 30 description = "A simple entropy daemon"; 31 longDescription = '' 32 The haveged project is an attempt to provide an easy-to-use, unpredictable 33 random number generator based upon an adaptation of the HAVEGE algorithm. 34 Haveged was created to remedy low-entropy conditions in the Linux random device 35 that can occur under some workloads, especially on headless servers. Current development 36 of haveged is directed towards improving overall reliability and adaptability while minimizing 37 the barriers to using haveged for other tasks. 38 ''; 39 homepage = "https://github.com/jirka-h/haveged"; 40 changelog = "https://raw.githubusercontent.com/jirka-h/haveged/v${version}/ChangeLog"; 41 license = licenses.gpl3Plus; 42 maintainers = with maintainers; [ domenkozar ]; 43 platforms = platforms.unix; 44 badPlatforms = platforms.darwin; # fails to build since v1.9.15 45 }; 46}