nixpkgs/pkgs/by-name/sc/scimark/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
900 B
Nix
Raw Normal View History

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