From 5e831ad15b31f50bdb4cda1c875af33b55ccf87e Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 1 Oct 2025 03:15:10 +0000 Subject: [PATCH 1/8] scotch: 7.0.9 -> 7.0.10 --- pkgs/by-name/sc/scotch/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/sc/scotch/package.nix b/pkgs/by-name/sc/scotch/package.nix index 9fafe1d1da77..e1977db4cf05 100644 --- a/pkgs/by-name/sc/scotch/package.nix +++ b/pkgs/by-name/sc/scotch/package.nix @@ -16,14 +16,14 @@ stdenv.mkDerivation (finalAttrs: { pname = "scotch"; - version = "7.0.9"; + version = "7.0.10"; src = fetchFromGitLab { domain = "gitlab.inria.fr"; owner = "scotch"; repo = "scotch"; rev = "v${finalAttrs.version}"; - hash = "sha256-dbf18XdmDP0KgS4H4L7Wnam7kGF88yBcCvehYRRpHvA="; + hash = "sha256-qeMgTkoM/RDsZa0T6hmrDLbLuSeR8WNxllyHSlkMVzA="; }; outputs = [ @@ -37,7 +37,7 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeBool "BUILD_PTSCOTCH" withPtScotch) # Prefix Scotch version of MeTiS routines (lib.cmakeBool "SCOTCH_METIS_PREFIX" true) - # building tests is broken with SCOTCH_METIS_PREFIX enabled in 7.0.9 + # building tests is broken with SCOTCH_METIS_PREFIX enabled, at least since 7.0.9 (lib.cmakeBool "ENABLE_TESTS" false) ]; From 03cba73633358c1a2f8a4d5afc36c6e34ac57dac Mon Sep 17 00:00:00 2001 From: Grimmauld Date: Wed, 1 Oct 2025 10:44:05 +0200 Subject: [PATCH 2/8] scotch: add update script --- pkgs/by-name/sc/scotch/package.nix | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/sc/scotch/package.nix b/pkgs/by-name/sc/scotch/package.nix index e1977db4cf05..f98420c1e9de 100644 --- a/pkgs/by-name/sc/scotch/package.nix +++ b/pkgs/by-name/sc/scotch/package.nix @@ -12,6 +12,7 @@ mpi, withPtScotch ? false, testers, + nix-update-script, }: stdenv.mkDerivation (finalAttrs: { @@ -58,15 +59,6 @@ stdenv.mkDerivation (finalAttrs: { mpi ]; - passthru = { - tests = { - cmake-config = testers.hasCmakeConfigModules { - moduleNames = [ "SCOTCH" ]; - package = finalAttrs.finalPackage; - }; - }; - }; - # SCOTCH provide compatibility with Metis/Parmetis interface. # We install the metis compatible headers to subdirectory to # avoid conflict with metis/parmetis. @@ -75,6 +67,17 @@ stdenv.mkDerivation (finalAttrs: { mv $dev/include/{*metis,metisf}.h $dev/include/scotch ''; + passthru = { + tests = { + cmake-config = testers.hasCmakeConfigModules { + moduleNames = [ "SCOTCH" ]; + package = finalAttrs.finalPackage; + }; + }; + + updateScript = nix-update-script { }; + }; + meta = { description = "Graph and mesh/hypergraph partitioning, graph clustering, and sparse matrix ordering"; longDescription = '' From 36214220d7c4cc749d607ed8a50fc66a59275fb0 Mon Sep 17 00:00:00 2001 From: Grimmauld Date: Wed, 1 Oct 2025 11:32:05 +0200 Subject: [PATCH 3/8] scotch: add musl to passthru.tests --- pkgs/by-name/sc/scotch/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/sc/scotch/package.nix b/pkgs/by-name/sc/scotch/package.nix index f98420c1e9de..cdc572cbae56 100644 --- a/pkgs/by-name/sc/scotch/package.nix +++ b/pkgs/by-name/sc/scotch/package.nix @@ -12,6 +12,7 @@ mpi, withPtScotch ? false, testers, + pkgsMusl ? { }, # default to empty set to avoid CI fails with allowVariants = false nix-update-script, }: @@ -73,6 +74,7 @@ stdenv.mkDerivation (finalAttrs: { moduleNames = [ "SCOTCH" ]; package = finalAttrs.finalPackage; }; + musl = pkgsMusl.scotch or null; }; updateScript = nix-update-script { }; From 0aa3c4aeb4cae0df81df30121171d90fb45bf978 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 3 Oct 2025 01:47:07 +0000 Subject: [PATCH 4/8] ncps: 0.3.0 -> 0.4.0 --- pkgs/by-name/nc/ncps/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/nc/ncps/package.nix b/pkgs/by-name/nc/ncps/package.nix index 640b305de913..2c2a1c8e18bd 100644 --- a/pkgs/by-name/nc/ncps/package.nix +++ b/pkgs/by-name/nc/ncps/package.nix @@ -8,20 +8,20 @@ let finalAttrs = { pname = "ncps"; - version = "0.3.0"; + version = "0.4.0"; src = fetchFromGitHub { owner = "kalbasit"; repo = "ncps"; tag = "v${finalAttrs.version}"; - hash = "sha256-mBiasGQgwP8dRQqtn7z+tLKECDd1p0JE2nvCYLru0Ts="; + hash = "sha256-A2HLbob9MHHCUNIC1OBwyFeE6KuEIdXW75hPSZMgicI="; }; ldflags = [ "-X github.com/kalbasit/ncps/cmd.Version=v${finalAttrs.version}" ]; - vendorHash = "sha256-5QpzU+cy14cdR5Oi2vwA+BbMSTPMXlhyq9RpzbMsRZQ="; + vendorHash = "sha256-Plc1L23qOYj1evVIG+O3OxVAKVeEIA+Z6sP4Z/T1SxU="; doCheck = true; checkFlags = [ "-race" ]; From cf8b185b23c2dafb2681759aa9a4ac2708e98b21 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 3 Oct 2025 02:40:57 +0000 Subject: [PATCH 5/8] shaperglot-cli: 1.1.2 -> 1.2.0 --- pkgs/by-name/sh/shaperglot-cli/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/sh/shaperglot-cli/package.nix b/pkgs/by-name/sh/shaperglot-cli/package.nix index 0755e1852ec1..b04135fde4c5 100644 --- a/pkgs/by-name/sh/shaperglot-cli/package.nix +++ b/pkgs/by-name/sh/shaperglot-cli/package.nix @@ -8,16 +8,16 @@ rustPlatform.buildRustPackage (finalAttrs: { pname = "shaperglot-cli"; - version = "1.1.2"; + version = "1.2.0"; src = fetchFromGitHub { owner = "googlefonts"; repo = "shaperglot"; tag = "v${finalAttrs.version}"; - hash = "sha256-YbAitVNBSPvYg2wsBmvNS/NA6M7ZDY7w/lYgDNs3i4Y="; + hash = "sha256-Jh2/Rr7bIPFiblUZFS8KiQtMwmtMuOGCSV2w7LMCbq8="; }; - cargoHash = "sha256-miGaE2SntBi4tHrK2bz4A77gnUX0zIBvnvDDZIVeveo="; + cargoHash = "sha256-3cHUSRvrvywfiYA/WpUrCIJV+hEQQwRNTPvSmCN50ho="; cargoBuildFlags = [ "--package=shaperglot-cli" From d5606bfb2337d0e66dd552b7abb26c6987aa6499 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 3 Oct 2025 04:24:04 +0000 Subject: [PATCH 6/8] owi: 0.2-unstable-2025-09-17 -> 0.2-unstable-2025-09-25 --- pkgs/by-name/ow/owi/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ow/owi/package.nix b/pkgs/by-name/ow/owi/package.nix index 1c1a10370ab8..3554e91d8e4d 100644 --- a/pkgs/by-name/ow/owi/package.nix +++ b/pkgs/by-name/ow/owi/package.nix @@ -15,14 +15,14 @@ let in ocamlPackages.buildDunePackage rec { pname = "owi"; - version = "0.2-unstable-2025-09-17"; + version = "0.2-unstable-2025-09-25"; src = fetchFromGitHub { owner = "ocamlpro"; repo = "owi"; - rev = "a0b11f9463a7f9dc8dd84f15405dd197b8fdc9ba"; + rev = "3c5ea7f07bf0c530286870bfb37010e44b75677d"; fetchSubmodules = true; - hash = "sha256-PQgXfFsaB9EwzHhxpvfCbnvppy0YHtcb6WB2kF5jz8Q="; + hash = "sha256-3YGNm60ro9DzjxnjRpE2b1fde4tCxo+y8DM8nS73Hwc="; }; nativeBuildInputs = with ocamlPackages; [ From a15b0255263d8c961156ae50dc9eb178daf121dc Mon Sep 17 00:00:00 2001 From: Yifei Sun Date: Mon, 29 Sep 2025 17:22:26 +0200 Subject: [PATCH 7/8] ocamlPackages.oasis: throw if ocaml >= 5.0 --- .../development/tools/ocaml/oasis/default.nix | 93 ++++++++++--------- 1 file changed, 48 insertions(+), 45 deletions(-) diff --git a/pkgs/development/tools/ocaml/oasis/default.nix b/pkgs/development/tools/ocaml/oasis/default.nix index 4d3536ad6524..38a11db77626 100644 --- a/pkgs/development/tools/ocaml/oasis/default.nix +++ b/pkgs/development/tools/ocaml/oasis/default.nix @@ -9,54 +9,57 @@ ocamlify, }: -stdenv.mkDerivation { - version = "0.4.11"; - pname = "ocaml-oasis"; +lib.throwIf (lib.versionAtLeast ocaml.version "5.0") "oasis is not available for OCaml ≥ 5.0" - src = fetchurl { - url = "https://download.ocamlcore.org/oasis/oasis/0.4.11/oasis-0.4.11.tar.gz"; - hash = "sha256-GLc97vTtbpqDM38ks7vi3tZSaLP/cwn8wA0l5X4dwS4="; - }; + stdenv.mkDerivation + { + version = "0.4.11"; + pname = "ocaml-oasis"; - createFindlibDestdir = true; + src = fetchurl { + url = "https://download.ocamlcore.org/oasis/oasis/0.4.11/oasis-0.4.11.tar.gz"; + hash = "sha256-GLc97vTtbpqDM38ks7vi3tZSaLP/cwn8wA0l5X4dwS4="; + }; - strictDeps = true; + createFindlibDestdir = true; - nativeBuildInputs = [ - ocaml - findlib - ocamlbuild - ocamlmod - ocamlify - ]; + strictDeps = true; - buildInputs = [ ocamlbuild ]; - - configurePhase = '' - runHook preConfigure - ocaml setup.ml -configure --prefix $out - runHook postConfigure - ''; - buildPhase = '' - runHook preBuild - ocaml setup.ml -build - runHook postBuild - ''; - installPhase = '' - runHook preInstall - ocaml setup.ml -install - runHook postInstall - ''; - - meta = with lib; { - description = "Configure, build and install system for OCaml projects"; - homepage = "https://github.com/ocaml/oasis"; - license = licenses.lgpl21; - maintainers = with maintainers; [ - vbgl - maggesi + nativeBuildInputs = [ + ocaml + findlib + ocamlbuild + ocamlmod + ocamlify ]; - mainProgram = "oasis"; - inherit (ocaml.meta) platforms; - }; -} + + buildInputs = [ ocamlbuild ]; + + configurePhase = '' + runHook preConfigure + ocaml setup.ml -configure --prefix $out + runHook postConfigure + ''; + buildPhase = '' + runHook preBuild + ocaml setup.ml -build + runHook postBuild + ''; + installPhase = '' + runHook preInstall + ocaml setup.ml -install + runHook postInstall + ''; + + meta = with lib; { + description = "Configure, build and install system for OCaml projects"; + homepage = "https://github.com/ocaml/oasis"; + license = licenses.lgpl21; + maintainers = with maintainers; [ + vbgl + maggesi + ]; + mainProgram = "oasis"; + inherit (ocaml.meta) platforms; + }; + } From b1c58f7f210c3356e68ea370be766d852925d8f0 Mon Sep 17 00:00:00 2001 From: Yifei Sun Date: Thu, 2 Oct 2025 18:31:16 +0200 Subject: [PATCH 8/8] ocamlPackages.ocamlmod: 0.0.9 -> 0.1.1 Update pkgs/development/tools/ocaml/ocamlmod/default.nix Co-authored-by: Vincent Laporte --- .../tools/ocaml/ocamlmod/default.nix | 71 +++++++------------ 1 file changed, 24 insertions(+), 47 deletions(-) diff --git a/pkgs/development/tools/ocaml/ocamlmod/default.nix b/pkgs/development/tools/ocaml/ocamlmod/default.nix index 3a907026526e..3f3f6bbe7f8b 100644 --- a/pkgs/development/tools/ocaml/ocamlmod/default.nix +++ b/pkgs/development/tools/ocaml/ocamlmod/default.nix @@ -1,56 +1,33 @@ { lib, - stdenv, - fetchurl, ocaml, - findlib, - ocamlbuild, - ounit, + buildDunePackage, + fetchurl, + ounit2, }: -let - # ounit is only available for OCaml >= 4.08 +buildDunePackage (finalAttrs: { + pname = "ocamlmod"; + version = "0.1.1"; + + minimalOCamlVersion = "4.03"; + + src = fetchurl { + url = "https://github.com/gildor478/ocamlmod/releases/download/v${finalAttrs.version}/ocamlmod-${finalAttrs.version}.tbz"; + hash = "sha256-qMG+y/iS+L4qtKiJX01pTTAdQuGLoIA+so1fqY9bm8o="; + }; + doCheck = lib.versionAtLeast ocaml.version "4.08"; -in + checkInputs = [ ounit2 ]; -lib.throwIf (lib.versionAtLeast ocaml.version "5.0") "ocamlmod is not available for OCaml ≥ 5.0" + dontStrip = true; - stdenv.mkDerivation - { - pname = "ocamlmod"; - version = "0.0.9"; - - src = fetchurl { - url = "https://forge.ocamlcore.org/frs/download.php/1702/ocamlmod-0.0.9.tar.gz"; - sha256 = "0cgp9qqrq7ayyhddrmqmq1affvfqcn722qiakjq4dkywvp67h4aa"; - }; - - strictDeps = !doCheck; - - nativeBuildInputs = [ - ocaml - findlib - ocamlbuild + meta = { + homepage = "https://github.com/gildor478/ocamlmod"; + description = "Generate OCaml modules from source files"; + maintainers = with lib.maintainers; [ + maggesi ]; - - configurePhase = - "ocaml setup.ml -configure --prefix $out" + lib.optionalString doCheck " --enable-tests"; - buildPhase = "ocaml setup.ml -build"; - installPhase = "ocaml setup.ml -install"; - - inherit doCheck; - nativeCheckInputs = [ ounit ]; - - checkPhase = "ocaml setup.ml -test"; - - dontStrip = true; - - meta = { - homepage = "https://forge.ocamlcore.org/projects/ocamlmod/ocamlmod"; - description = "Generate OCaml modules from source files"; - platforms = ocaml.meta.platforms or [ ]; - maintainers = with lib.maintainers; [ - maggesi - ]; - }; - } + mainProgram = "ocamlmod"; + }; +})