2021-03-19 16:21:25 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, unzip
|
|
|
|
}:
|
|
|
|
|
2023-09-12 00:24:37 +02:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-03-19 16:21:25 +01:00
|
|
|
pname = "scimark";
|
|
|
|
version = "4c";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2023-09-12 00:24:37 +02:00
|
|
|
url = "https://math.nist.gov/scimark2/scimark${finalAttrs.version}.zip";
|
2021-03-19 16:21:25 +01:00
|
|
|
hash = "sha256-kcg5vKYp0B7+bC/CmFMO/tMwxf9q6nvuFv0vRSy3MbE=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
unzip
|
|
|
|
];
|
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
2023-09-12 00:24:37 +02:00
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -Dm755 scimark4 -t $out/bin/
|
|
|
|
|
|
|
|
runHook postInstall
|
2021-03-19 16:21:25 +01:00
|
|
|
'';
|
|
|
|
|
2023-09-12 00:24:37 +02:00
|
|
|
meta = {
|
2021-03-19 16:21:25 +01:00
|
|
|
homepage = "https://math.nist.gov/scimark2/index.html";
|
|
|
|
description = "Scientific and numerical computing benchmark (ANSI C version)";
|
2023-09-12 00:24:37 +02:00
|
|
|
downloadPage = "https://math.nist.gov/scimark2/download_c.html";
|
|
|
|
license = lib.licenses.publicDomain;
|
2022-04-01 21:34:55 +02:00
|
|
|
mainProgram = "scimark4";
|
2023-09-12 00:24:37 +02:00
|
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
|
|
|
platforms = lib.platforms.all;
|
2021-03-19 16:21:25 +01:00
|
|
|
};
|
2023-09-12 00:24:37 +02:00
|
|
|
})
|
2021-03-19 16:21:25 +01:00
|
|
|
# TODO [ AndersonTorres ]: Java version
|