about summary refs log tree commit diff
path: root/pkgs/misc
diff options
context:
space:
mode:
authorAnderson Torres <torres.anderson.85@protonmail.com>2021-03-22 11:28:22 -0300
committerGitHub <noreply@github.com>2021-03-22 11:28:22 -0300
commit9007023a70039eab3bb1b47a507c9129a455f680 (patch)
tree192646f148d74afc45a55e07c736347fa39b9f7e /pkgs/misc
parent04a37553f2fcd6f2f513b8e81b7e8e20ebf62d2b (diff)
parent6e82e07df3b63589a48fa9f9bee86f9f253911a6 (diff)
Merge pull request #116932 from AndersonTorres/new-scimark
scimark: init at 4c
Diffstat (limited to 'pkgs/misc')
-rw-r--r--pkgs/misc/scimark/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/misc/scimark/default.nix b/pkgs/misc/scimark/default.nix
new file mode 100644
index 0000000000000..7558c676ba52c
--- /dev/null
+++ b/pkgs/misc/scimark/default.nix
@@ -0,0 +1,35 @@
+{ 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 ];
+    platforms = platforms.all;
+  };
+}
+# TODO [ AndersonTorres ]: Java version