nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 unzip,
6}:
7
8stdenv.mkDerivation (finalAttrs: {
9 pname = "scimark";
10 version = "4c";
11
12 src = fetchurl {
13 url = "https://math.nist.gov/scimark2/scimark${finalAttrs.version}.zip";
14 hash = "sha256-kcg5vKYp0B7+bC/CmFMO/tMwxf9q6nvuFv0vRSy3MbE=";
15 };
16
17 nativeBuildInputs = [
18 unzip
19 ];
20
21 dontConfigure = true;
22
23 installPhase = ''
24 runHook preInstall
25
26 install -Dm755 scimark4 -t $out/bin/
27
28 runHook postInstall
29 '';
30
31 meta = {
32 homepage = "https://math.nist.gov/scimark2/index.html";
33 description = "Scientific and numerical computing benchmark (ANSI C version)";
34 downloadPage = "https://math.nist.gov/scimark2/download_c.html";
35 license = lib.licenses.publicDomain;
36 mainProgram = "scimark4";
37 maintainers = [ ];
38 platforms = lib.platforms.all;
39 };
40})