2022-04-27 09:35:20 +00:00
|
|
|
{ lib, stdenv, fetchurl, php, which, makeWrapper, gnumake, gcc, callPackage }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "phoronix-test-suite";
|
2022-02-21 08:47:16 +00:00
|
|
|
version = "10.8.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://phoronix-test-suite.com/releases/${pname}-${version}.tar.gz";
|
2022-02-21 08:47:16 +00:00
|
|
|
sha256 = "sha256-hmgTQ9IEFYMasW72w9HDF+I0XncZJeBpiukgoDqeqrY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ php ];
|
2022-04-27 09:35:20 +00:00
|
|
|
nativeBuildInputs = [ which makeWrapper ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2021-09-22 15:38:15 +00:00
|
|
|
runHook preInstall
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
./install-sh $out
|
|
|
|
wrapProgram $out/bin/phoronix-test-suite \
|
|
|
|
--set PHP_BIN ${php}/bin/php \
|
2021-01-15 22:18:51 +00:00
|
|
|
--prefix PATH : ${lib.makeBinPath [ gnumake gcc ]}
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
simple-execution = callPackage ./tests.nix { };
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Open-Source, Automated Benchmarking";
|
|
|
|
homepage = "https://www.phoronix-test-suite.com/";
|
|
|
|
maintainers = with maintainers; [ davidak ];
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = with platforms; unix;
|
|
|
|
};
|
|
|
|
}
|