depot/third_party/nixpkgs/pkgs/development/libraries/jitterentropy/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

37 lines
994 B
Nix

{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "jitterentropy";
version = "2.2.0";
src = fetchFromGitHub {
owner = "smuellerDD";
repo = "jitterentropy-library";
rev = "v${version}";
sha256 = "0n2l1fxr7bynnarpwdjifb2fvlsq8w5wmfh31yk5nrc756cjlgyw";
};
patches = [
# Can be removed when upgrading beyond 2.2.0
./reproducible-manpages.patch
];
enableParallelBuilding = true;
preInstall = ''
mkdir -p $out/include
substituteInPlace Makefile \
--replace "install -m 0755 -s" \
'install -m 0755 -s --strip-program $(STRIP)'
'';
installFlags = [
"PREFIX=$(out)"
];
meta = {
description = "Provides a noise source using the CPU execution timing jitter";
homepage = "https://github.com/smuellerDD/jitterentropy-library";
license = with stdenv.lib.licenses; [ gpl2 bsd3 ];
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ johnazoidberg ];
};
}