fishPlugins.nvm: init at 2.2.16 (#379076)
[NixPkgs.git] / pkgs / by-name / dj / djent / package.nix
bloba5d0d45313a780d06af97d858ba4d34e8f019886
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   mpfr,
6 }:
8 stdenv.mkDerivation rec {
9   pname = "djent";
10   version = "1.0";
12   src = fetchFromGitHub {
13     owner = "dj-on-github";
14     repo = "djent";
15     rev = "${version}";
16     hash = "sha256-inMh7l/6LlrVnIin+L+fj+4Lchk0Xvt09ngVrCuvphE=";
17   };
19   buildInputs = [ mpfr ];
21   preBuild =
22     ''
23       sed -i s/gcc/${stdenv.cc.targetPrefix}gcc/g Makefile
24     ''
25     + lib.optionalString (!stdenv.hostPlatform.isx86_64) ''
26       sed -i s/-m64//g Makefile
27     '';
29   makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
31   installPhase = ''
32     runHook preInstall
33     install -D djent $out/bin/djent
34     runHook postInstall
35   '';
37   enableParallelBuilding = true;
39   meta = {
40     homepage = "http://www.deadhat.com/";
41     description = ''
42       A reimplementation of the Fourmilab/John Walker random number test program
43       ent with several improvements
44     '';
45     mainProgram = "djent";
46     license = lib.licenses.gpl2Only;
47     platforms = lib.platforms.all;
48     maintainers = with lib.maintainers; [
49       orichter
50       thillux
51     ];
52   };