about summary refs log tree commit diff
path: root/nixpkgs/pkgs/misc/scimark/default.nix
blob: 5726556e687fe2f1ba675d2af5a8d47eaeba8277 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ lib
, stdenv
, fetchurl
, unzip
}:

stdenv.mkDerivation rec {
  pname = "scimark";
  version = "4c";

  src = fetchurl {
    url = "https://math.nist.gov/scimark2/${pname}${version}.zip";
    hash = "sha256-kcg5vKYp0B7+bC/CmFMO/tMwxf9q6nvuFv0vRSy3MbE=";
  };

  nativeBuildInputs = [
    unzip
  ];

  dontConfigure = true;

  installPhase = ''
    install -d $out/bin/
    install scimark4 $out/bin/
  '';

  meta = with lib; {
    homepage = "https://math.nist.gov/scimark2/index.html";
    description = "Scientific and numerical computing benchmark (ANSI C version)";
    license = licenses.publicDomain;
    maintainers = with maintainers; [ AndersonTorres ];
    mainProgram = "scimark4";
    platforms = platforms.all;
  };
}
# TODO [ AndersonTorres ]: Java version