ocamlPackages.hxd: 0.3.2 -> 0.3.3 (#364231)
[NixPkgs.git] / pkgs / by-name / ph / phoronix-test-suite / package.nix
blobf74401c3ed8eda60af596a553c7b5b283a6fe3b0
2   lib,
3   stdenv,
4   fetchurl,
5   php,
6   which,
7   makeWrapper,
8   gnumake,
9   gcc,
10   callPackage,
13 stdenv.mkDerivation rec {
14   pname = "phoronix-test-suite";
15   version = "10.8.4";
17   src = fetchurl {
18     url = "https://phoronix-test-suite.com/releases/phoronix-test-suite-${version}.tar.gz";
19     sha256 = "sha256-HyCS1TbAoxk+/FPkpQ887mXA7xp40x5UBPHGY//3t/Q=";
20   };
22   buildInputs = [ php ];
23   nativeBuildInputs = [
24     which
25     makeWrapper
26   ];
28   installPhase = ''
29     runHook preInstall
31     ./install-sh $out
32     wrapProgram $out/bin/phoronix-test-suite \
33     --set PHP_BIN ${php}/bin/php \
34     --prefix PATH : ${
35       lib.makeBinPath [
36         gnumake
37         gcc
38       ]
39     }
41     runHook postInstall
42   '';
44   passthru.tests = {
45     simple-execution = callPackage ./tests.nix { };
46   };
48   meta = with lib; {
49     description = "Open-Source, Automated Benchmarking";
50     homepage = "https://www.phoronix-test-suite.com/";
51     maintainers = with maintainers; [ davidak ];
52     license = licenses.gpl3;
53     platforms = with platforms; unix;
54     mainProgram = "phoronix-test-suite";
55   };