Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
34 lines
927 B
Nix
34 lines
927 B
Nix
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "jitterentropy-rngd";
|
|
version = "1.2.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "smuellerDD";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-LDym636ss3B1G/vrqatu9g5vbVEeDX0JQcxZ/IxGeY0=";
|
|
};
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out
|
|
make install DESTDIR= PREFIX=$out UNITDIR=$out/lib/systemd/system
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = ''A random number generator, which injects entropy to the kernel'';
|
|
homepage = "https://github.com/smuellerDD/jitterentropy-rngd";
|
|
changelog = "https://github.com/smuellerDD/jitterentropy-rngd/releases/tag/v${version}";
|
|
license = [ licenses.gpl2Only licenses.bsd3 ];
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ thillux ];
|
|
mainProgram = "jitterentropy-rngd";
|
|
};
|
|
}
|