summary refs log tree commit diff
path: root/pkgs/development/libraries/jitterentropy/default.nix
blob: 175097ef78550d3c12b29cbbfb14359c832b46a1 (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 {
  name = "jitterentropy-${version}";
  version = "2.1.2";

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

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