depot/third_party/nixpkgs/pkgs/development/libraries/jitterentropy/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

31 lines
902 B
Nix

{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "jitterentropy";
version = "3.3.1";
src = fetchFromGitHub {
owner = "smuellerDD";
repo = "jitterentropy-library";
rev = "v${version}";
hash = "sha256-go7eGwBoZ58LkgKL7t8oZSc1cFlE6fPOT/ML3Aa8+CM=";
};
outputs = [ "out" "dev" ];
enableParallelBuilding = true;
hardeningDisable = [ "fortify" ]; # avoid warnings
installFlags = [
"PREFIX=${placeholder "out"}"
];
meta = with lib; {
description = "Provides a noise source using the CPU execution timing jitter";
homepage = "https://github.com/smuellerDD/jitterentropy-library";
changelog = "https://github.com/smuellerDD/jitterentropy-library/raw/v${version}/CHANGES.md";
license = with licenses; [ bsd3 /* OR */ gpl2Only ];
platforms = platforms.linux;
maintainers = with maintainers; [ johnazoidberg c0bw3b ];
};
}