summary refs log tree commit diff
path: root/pkgs/development/libraries/jitterentropy/default.nix
blob: f6a70deb8c2d6561c6067d6240d31c6d4befc02f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
  pname = "jitterentropy";
  version = "2.2.0";

  src = fetchFromGitHub {
    owner = "smuellerDD";
    repo = "jitterentropy-library";
    rev = "v${version}";
    sha256 = "0n2l1fxr7bynnarpwdjifb2fvlsq8w5wmfh31yk5nrc756cjlgyw";
  };

  enableParallelBuilding = true;

  preInstall = ''
    mkdir -p $out/include
  '';

  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 ];
  };
}