Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / jitterentropy / default.nix
blobedf46fa4f51b7c25fe56acee506b87eddb3ce7ef
1 { lib, stdenv, fetchFromGitHub }:
3 stdenv.mkDerivation rec {
4   pname = "jitterentropy";
5   version = "3.4.1";
7   src = fetchFromGitHub {
8     owner = "smuellerDD";
9     repo = "jitterentropy-library";
10     rev = "v${version}";
11     hash = "sha256-GSGlupTN1o8BbTN287beqYSRFDaXOk6SlIRvtjpvmhQ=";
12   };
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.
21   installFlags = [
22     "INSTALL_STRIP=install"
23     "PREFIX=${placeholder "out"}"
24   ];
26   meta = with lib; {
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 ];
33   };