diff options
author | TomaSajt <62384384+TomaSajt@users.noreply.github.com> | 2024-04-30 15:37:24 +0200 |
---|---|---|
committer | TomaSajt <62384384+TomaSajt@users.noreply.github.com> | 2024-04-30 15:37:24 +0200 |
commit | 5f1a99cdaa5113174815f73741ebb20496c92b7f (patch) | |
tree | 0e57d8f4f4525cf9969ac94f28976b9ce83e9c5d /pkgs/by-name/sc | |
parent | 38cc39329a91a925aba2fb32db33fd759a5306fa (diff) |
scotch: move to pkgs/by-name
Diffstat (limited to 'pkgs/by-name/sc')
-rw-r--r-- | pkgs/by-name/sc/scotch/package.nix | 36 |
1 files changed, 36 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..1eb057cfc7c5c --- /dev/null +++ b/pkgs/by-name/sc/scotch/package.nix @@ -0,0 +1,36 @@ +{ lib, stdenv, fetchurl, bison, mpi, flex, zlib}: + +stdenv.mkDerivation rec { + version = "6.1.1"; + pname = "scotch"; + src_name = "scotch_${version}"; + + buildInputs = [ bison mpi flex zlib ]; + + src = fetchurl { + url = "https://gforge.inria.fr/frs/download.php/file/34618/${src_name}.tar.gz"; + sha256 = "sha256-OQUvWf9HSkppzvwlzzyvhClACIneugEO5kA8oYj4sxE="; + }; + + sourceRoot = "${src_name}/src"; + + preConfigure = '' + 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; + }; +} + |