btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / ji / jitterentropy / package.nix
blobdb1acb1728f9b4f7f8d00e8a68037225f82bc157
2   lib,
3   stdenv,
4   cmake,
5   fetchFromGitHub,
6 }:
8 stdenv.mkDerivation rec {
9   pname = "jitterentropy";
10   version = "3.6.0";
12   src = fetchFromGitHub {
13     owner = "smuellerDD";
14     repo = "jitterentropy-library";
15     rev = "v${version}";
16     hash = "sha256-CPvgc/W5Z2OfbP9Lp2tQevUQZr+xlh6q5r5Fp2WUHhg=";
17   };
19   nativeBuildInputs = [ cmake ];
21   outputs = [
22     "out"
23     "dev"
24   ];
26   hardeningDisable = [ "fortify" ]; # avoid warnings
28   meta = {
29     description = "Provides a noise source using the CPU execution timing jitter";
30     homepage = "https://github.com/smuellerDD/jitterentropy-library";
31     changelog = "https://github.com/smuellerDD/jitterentropy-library/raw/v${version}/CHANGES.md";
32     license = with lib.licenses; [
33       bsd3 # OR
34       gpl2Only
35     ];
36     platforms = lib.platforms.linux ++ lib.platforms.darwin;
37     maintainers = with lib.maintainers; [
38       johnazoidberg
39       c0bw3b
40     ];
41   };