about summary refs log tree commit diff
path: root/pkgs/by-name/sc
diff options
context:
space:
mode:
authorAnderson Torres <torres.anderson.85@protonmail.com>2023-09-11 19:24:37 -0300
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-10-11 23:42:04 -0300
commitc68e9ecaff866ffe01c415fb749a1d8b7cd3fff5 (patch)
treee99e59e0b3eaa1095d8bd82b968664ea6907ea25 /pkgs/by-name/sc
parentbde3f6a4b1013262ec089ff3f178e8784154ab19 (diff)
scimark: migrate to by-name
Diffstat (limited to 'pkgs/by-name/sc')
-rw-r--r--pkgs/by-name/sc/scimark/package.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/by-name/sc/scimark/package.nix b/pkgs/by-name/sc/scimark/package.nix
new file mode 100644
index 0000000000000..c9a88e6d2b59e
--- /dev/null
+++ b/pkgs/by-name/sc/scimark/package.nix
@@ -0,0 +1,40 @@
+{ lib
+, stdenv
+, fetchurl
+, unzip
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+  pname = "scimark";
+  version = "4c";
+
+  src = fetchurl {
+    url = "https://math.nist.gov/scimark2/scimark${finalAttrs.version}.zip";
+    hash = "sha256-kcg5vKYp0B7+bC/CmFMO/tMwxf9q6nvuFv0vRSy3MbE=";
+  };
+
+  nativeBuildInputs = [
+    unzip
+  ];
+
+  dontConfigure = true;
+
+  installPhase = ''
+    runHook preInstall
+
+    install -Dm755 scimark4 -t $out/bin/
+
+    runHook postInstall
+  '';
+
+  meta = {
+    homepage = "https://math.nist.gov/scimark2/index.html";
+    description = "Scientific and numerical computing benchmark (ANSI C version)";
+    downloadPage = "https://math.nist.gov/scimark2/download_c.html";
+    license = lib.licenses.publicDomain;
+    mainProgram = "scimark4";
+    maintainers = with lib.maintainers; [ AndersonTorres ];
+    platforms = lib.platforms.all;
+  };
+})
+# TODO [ AndersonTorres ]: Java version