about summary refs log tree commit diff
path: root/pkgs/by-name/sc
diff options
context:
space:
mode:
authorAleksana <me@aleksana.moe>2024-05-01 21:18:49 +0800
committerGitHub <noreply@github.com>2024-05-01 21:18:49 +0800
commit408a43cf9c40a6212b45b3c5eb68bda7ece01ac4 (patch)
tree4d05a367145c45e0faeaf1c5511b851c8df8b6d1 /pkgs/by-name/sc
parent51cc3442afce83e6d1c4dc8abc683cc9844824ee (diff)
parent285278da9867f6dcb5ae6f3891b0ea22f8d166b7 (diff)
Merge pull request #308004 from TomaSajt/scotch
scotch: use fetchFromGitLab, format and move to pkgs/by-name
Diffstat (limited to 'pkgs/by-name/sc')
-rw-r--r--pkgs/by-name/sc/scotch/package.nix50
1 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/by-name/sc/scotch/package.nix b/pkgs/by-name/sc/scotch/package.nix
new file mode 100644
index 0000000000000..7a93705cd9140
--- /dev/null
+++ b/pkgs/by-name/sc/scotch/package.nix
@@ -0,0 +1,50 @@
+{
+  lib,
+  stdenv,
+  fetchFromGitLab,
+  bison,
+  mpi,
+  flex,
+  zlib,
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+  pname = "scotch";
+  version = "6.1.1";
+
+  buildInputs = [
+    bison
+    mpi
+    flex
+    zlib
+  ];
+
+  src = fetchFromGitLab {
+    domain = "gitlab.inria.fr";
+    owner = "scotch";
+    repo = "scotch";
+    rev = "v${finalAttrs.version}";
+    hash = "sha256-GUV6s+P56OAJq9AMe+LZOMPICQO/RuIi+hJAecmO5Wc=";
+  };
+
+  preConfigure = ''
+    cd src
+    ln -s Make.inc/Makefile.inc.x86-64_pc_linux2 Makefile.inc
+  '';
+
+  buildFlags = [ "scotch ptscotch" ];
+
+  installFlags = [ "prefix=\${out}" ];
+
+  meta = {
+    description = "Graph and mesh/hypergraph partitioning, graph clustering, and sparse matrix ordering";
+    longDescription = ''
+      Scotch is a software package for graph and mesh/hypergraph partitioning, graph clustering,
+      and sparse matrix ordering.
+    '';
+    homepage = "http://www.labri.fr/perso/pelegrin/scotch";
+    license = lib.licenses.cecill-c;
+    maintainers = [ lib.maintainers.bzizou ];
+    platforms = lib.platforms.linux;
+  };
+})