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-08-21 13:32:41 +00:00
|
|
|
version = "10.8.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://phoronix-test-suite.com/releases/${pname}-${version}.tar.gz";
|
2022-08-21 13:32:41 +00:00
|
|
|
sha256 = "sha256-HyCS1TbAoxk+/FPkpQ887mXA7xp40x5UBPHGY//3t/Q=";
|
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;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "phoronix-test-suite";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|