2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, php, which, gnused, makeWrapper, gnumake, gcc, callPackage }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "phoronix-test-suite";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "10.8.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://phoronix-test-suite.com/releases/${pname}-${version}.tar.gz";
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "sha256-O1jqaUQZymCNcp+mznLtK0xRr0RHKe77zcbmcCkMqn8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ php ];
|
|
|
|
nativeBuildInputs = [ which gnused makeWrapper ];
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|