1 { lib, stdenv, fetchFromGitHub }:
3 stdenv.mkDerivation rec {
4 pname = "jitterentropy";
7 src = fetchFromGitHub {
9 repo = "jitterentropy-library";
11 hash = "sha256-GSGlupTN1o8BbTN287beqYSRFDaXOk6SlIRvtjpvmhQ=";
14 outputs = [ "out" "dev" ];
16 enableParallelBuilding = true;
17 hardeningDisable = [ "fortify" ]; # avoid warnings
19 # prevent jitterentropy from builtin strip to allow controlling this from the derivation's
20 # settings. Also fixes a strange issue, where this strip may fail when cross-compiling.
22 "INSTALL_STRIP=install"
23 "PREFIX=${placeholder "out"}"
27 description = "Provides a noise source using the CPU execution timing jitter";
28 homepage = "https://github.com/smuellerDD/jitterentropy-library";
29 changelog = "https://github.com/smuellerDD/jitterentropy-library/raw/v${version}/CHANGES.md";
30 license = with licenses; [ bsd3 /* OR */ gpl2Only ];
31 platforms = platforms.linux;
32 maintainers = with maintainers; [ johnazoidberg c0bw3b ];