mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
e98a8367ec
Add jitterentropy-rngd, a tool similar to rng-tools. While not necessarily needed, it is useful for those who want to strengthen their kernel entropy input pool by periodic insertion of an independent source. The entropy source is a NIST SP800-90B compliant non-physical true RNG source on most systems. See the jitterentropy documentation for details (http://chronox.de/jent/doc/CPU-Jitter-NPTRNG.pdf). Signed-off-by: Markus Theil <theil.markus@gmail.com>
35 lines
927 B
Nix
35 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";
|
|
};
|
|
}
|