From 484b5ac3215a39d01e342087bf15a9f3ead1446c Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:39 -0600 Subject: [PATCH 01/49] ocamlPackages.alcotest: migrate to finalAttrs --- pkgs/development/ocaml-modules/alcotest/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/alcotest/default.nix b/pkgs/development/ocaml-modules/alcotest/default.nix index 305bb6a153a3..0a5cb3a78873 100644 --- a/pkgs/development/ocaml-modules/alcotest/default.nix +++ b/pkgs/development/ocaml-modules/alcotest/default.nix @@ -11,12 +11,12 @@ ocaml-syntax-shims, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "alcotest"; version = "1.9.1"; src = fetchurl { - url = "https://github.com/mirage/alcotest/releases/download/${version}/alcotest-${version}.tbz"; + url = "https://github.com/mirage/alcotest/releases/download/${finalAttrs.version}/alcotest-${finalAttrs.version}.tbz"; hash = "sha256-HinDtB1DKQYhBbcj39o6/4a4zvXnx1ANDkkfxf145II="; }; @@ -39,4 +39,4 @@ buildDunePackage rec { license = lib.licenses.isc; maintainers = [ lib.maintainers.ericbmerritt ]; }; -} +}) From 819de537dc2854605226ec128f36e8a8149a901d Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:39 -0600 Subject: [PATCH 02/49] ocamlPackages.algaeff: migrate to finalAttrs --- pkgs/development/ocaml-modules/algaeff/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/ocaml-modules/algaeff/default.nix b/pkgs/development/ocaml-modules/algaeff/default.nix index 0e867f8a0838..7190900057b1 100644 --- a/pkgs/development/ocaml-modules/algaeff/default.nix +++ b/pkgs/development/ocaml-modules/algaeff/default.nix @@ -6,7 +6,7 @@ qcheck-core, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "algaeff"; version = "2.0.0"; @@ -14,8 +14,8 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "RedPRL"; - repo = pname; - rev = version; + repo = "algaeff"; + rev = finalAttrs.version; hash = "sha256-VRZfULbXKRcExU1bnEu/X1KPX+L+dzcRYZVD985rQT4="; }; @@ -31,4 +31,4 @@ buildDunePackage rec { license = lib.licenses.asl20; maintainers = [ lib.maintainers.vbgl ]; }; -} +}) From 93471ee12a4f97ab431a3ddeea4e96ceb7e53871 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:39 -0600 Subject: [PATCH 03/49] ocamlPackages.alsa: migrate to finalAttrs --- pkgs/development/ocaml-modules/alsa/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/alsa/default.nix b/pkgs/development/ocaml-modules/alsa/default.nix index bc4c994dc525..fdf08692138f 100644 --- a/pkgs/development/ocaml-modules/alsa/default.nix +++ b/pkgs/development/ocaml-modules/alsa/default.nix @@ -6,7 +6,7 @@ alsa-lib, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "alsa"; version = "0.3.0"; @@ -15,7 +15,7 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "savonet"; repo = "ocaml-alsa"; - rev = version; + rev = finalAttrs.version; sha256 = "1qy22g73qc311rmv41w005rdlj5mfnn4yj1dx1jhqzr31zixl8hj"; }; @@ -28,4 +28,4 @@ buildDunePackage rec { license = lib.licenses.gpl2Only; maintainers = with lib.maintainers; [ dandellion ]; }; -} +}) From ffaa27b50a311b76f18b31716f70cc94193f00f6 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:39 -0600 Subject: [PATCH 04/49] ocamlPackages.ancient: migrate to finalAttrs --- pkgs/development/ocaml-modules/ancient/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/ocaml-modules/ancient/default.nix b/pkgs/development/ocaml-modules/ancient/default.nix index 65743757be89..78d2f5e9a637 100644 --- a/pkgs/development/ocaml-modules/ancient/default.nix +++ b/pkgs/development/ocaml-modules/ancient/default.nix @@ -3,14 +3,14 @@ buildDunePackage, fetchurl, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "ancient"; version = "0.10.0"; minimalOCamlVersion = "4.12"; src = fetchurl { - url = "https://github.com/OCamlPro/ocaml-ancient/releases/download/${version}/ancient-${version}.tbz"; + url = "https://github.com/OCamlPro/ocaml-ancient/releases/download/${finalAttrs.version}/ancient-${finalAttrs.version}.tbz"; hash = "sha256-XeVUPrdg7QSV7V0Tz8Mkj5jvzKtYD9DON+tt9kkuCHM="; }; @@ -35,8 +35,8 @@ buildDunePackage rec { file in and see the structures. ''; homepage = "https://github.com/OCamlPro/ocaml-ancient"; - changelog = "https://raw.githubusercontent.com/OCamlPro/ocaml-ancient/refs/tags/${version}/CHANGES.md"; + changelog = "https://raw.githubusercontent.com/OCamlPro/ocaml-ancient/refs/tags/${finalAttrs.version}/CHANGES.md"; license = lib.licenses.lgpl21Plus; maintainers = with lib.maintainers; [ momeemt ]; }; -} +}) From 58fcdf99ba3309ccc8241b206a3a74f1e6ddddf1 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:40 -0600 Subject: [PATCH 05/49] ocamlPackages.angstrom: migrate to finalAttrs --- pkgs/development/ocaml-modules/angstrom/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/ocaml-modules/angstrom/default.nix b/pkgs/development/ocaml-modules/angstrom/default.nix index 423267fb2b1b..2c2dce35b4fc 100644 --- a/pkgs/development/ocaml-modules/angstrom/default.nix +++ b/pkgs/development/ocaml-modules/angstrom/default.nix @@ -10,7 +10,7 @@ gitUpdater, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "angstrom"; version = "0.16.1"; @@ -18,8 +18,8 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "inhabitedtype"; - repo = pname; - rev = version; + repo = "angstrom"; + rev = finalAttrs.version; hash = "sha256-EPqDK+7RU2vHEHvuoTXb8V2FkdXQ6tGu0ghbNPS3gZ4="; }; @@ -39,4 +39,4 @@ buildDunePackage rec { license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ sternenseemann ]; }; -} +}) From 711d5f251b25132c4462a3873e23ac4e4804e2b0 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:40 -0600 Subject: [PATCH 06/49] ocamlPackages.ansiterminal: migrate to finalAttrs --- pkgs/development/ocaml-modules/ansiterminal/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/ansiterminal/default.nix b/pkgs/development/ocaml-modules/ansiterminal/default.nix index 07652e61dd94..cc8798286914 100644 --- a/pkgs/development/ocaml-modules/ansiterminal/default.nix +++ b/pkgs/development/ocaml-modules/ansiterminal/default.nix @@ -4,12 +4,12 @@ fetchurl, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "ANSITerminal"; version = "0.8.5"; src = fetchurl { - url = "https://github.com/Chris00/ANSITerminal/releases/download/${version}/ANSITerminal-${version}.tbz"; + url = "https://github.com/Chris00/ANSITerminal/releases/download/${finalAttrs.version}/ANSITerminal-${finalAttrs.version}.tbz"; hash = "sha256-q3OyGLajAmfSu8QzEtzzE5gbiwvsVV2SsGuHZkst0w4="; }; @@ -33,4 +33,4 @@ buildDunePackage rec { ]; maintainers = [ lib.maintainers.jirkamarsik ]; }; -} +}) From b6817939a39791e22837845c619fa799a3476930 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:40 -0600 Subject: [PATCH 07/49] ocamlPackages.ao: migrate to finalAttrs --- pkgs/development/ocaml-modules/ao/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/ao/default.nix b/pkgs/development/ocaml-modules/ao/default.nix index 77cbcf271744..174fa054490e 100644 --- a/pkgs/development/ocaml-modules/ao/default.nix +++ b/pkgs/development/ocaml-modules/ao/default.nix @@ -6,14 +6,14 @@ libao, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "ao"; version = "0.2.4"; src = fetchFromGitHub { owner = "savonet"; repo = "ocaml-ao"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; sha256 = "sha256-HhJdb4i9B4gz3emgDCDT4riQuAsY4uP/47biu7EZ+sk="; }; @@ -26,4 +26,4 @@ buildDunePackage rec { license = lib.licenses.lgpl21Plus; maintainers = with lib.maintainers; [ dandellion ]; }; -} +}) From 271f8626519d8114f318a4a9f8e8de8ddf30f114 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:40 -0600 Subject: [PATCH 08/49] ocamlPackages.apron: migrate to finalAttrs --- pkgs/development/ocaml-modules/apron/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/apron/default.nix b/pkgs/development/ocaml-modules/apron/default.nix index f1206bab6ffb..c329f36bf345 100644 --- a/pkgs/development/ocaml-modules/apron/default.nix +++ b/pkgs/development/ocaml-modules/apron/default.nix @@ -14,13 +14,13 @@ pplite, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "ocaml${ocaml.version}-apron"; version = "0.9.15"; src = fetchFromGitHub { owner = "antoinemine"; repo = "apron"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; hash = "sha256-gHLCurydxX1pS66DTAWUJGl9Yqu9RWRjkZh6lXzM7YY="; }; @@ -63,4 +63,4 @@ stdenv.mkDerivation rec { description = "Numerical abstract domain library"; inherit (ocaml.meta) platforms; }; -} +}) From ca4bb3ebcf0e917c961a3bcd2ba71b539ab886f3 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:40 -0600 Subject: [PATCH 09/49] ocamlPackages.arg-complete: migrate to finalAttrs --- pkgs/development/ocaml-modules/arg-complete/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/ocaml-modules/arg-complete/default.nix b/pkgs/development/ocaml-modules/arg-complete/default.nix index 341971b35e88..a981a79e8992 100644 --- a/pkgs/development/ocaml-modules/arg-complete/default.nix +++ b/pkgs/development/ocaml-modules/arg-complete/default.nix @@ -7,12 +7,12 @@ ounit2, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "arg-complete"; version = "0.2.1"; src = fetchurl { - url = "https://github.com/sim642/ocaml-arg-complete/releases/download/${version}/arg-complete-${version}.tbz"; + url = "https://github.com/sim642/ocaml-arg-complete/releases/download/${finalAttrs.version}/arg-complete-${finalAttrs.version}.tbz"; hash = "sha256-SZvLaeeqY3j2LUvqxGs0Vw57JnnpdvAk1jnE3pk27QU="; }; @@ -24,8 +24,8 @@ buildDunePackage rec { meta = { description = "Bash completion support for OCaml Stdlib.Arg"; homepage = "https://sim642.github.io/ocaml-arg-complete/"; - changelog = "https://raw.githubusercontent.com/sim642/ocaml-arg-complete/refs/tags/${version}/CHANGELOG.md"; + changelog = "https://raw.githubusercontent.com/sim642/ocaml-arg-complete/refs/tags/${finalAttrs.version}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = [ lib.maintainers.vbgl ]; }; -} +}) From a90ccc17f508705029fa60ef7253d8120a9d0bdc Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:40 -0600 Subject: [PATCH 10/49] ocamlPackages.argon2: migrate to finalAttrs --- pkgs/development/ocaml-modules/argon2/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/argon2/default.nix b/pkgs/development/ocaml-modules/argon2/default.nix index 0690ce740d3b..689bb5e50589 100644 --- a/pkgs/development/ocaml-modules/argon2/default.nix +++ b/pkgs/development/ocaml-modules/argon2/default.nix @@ -9,14 +9,14 @@ buildDunePackage, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "argon2"; version = "1.0.2"; minimalOCamlVersion = "4.02.3"; src = fetchurl { - url = "https://github.com/Khady/ocaml-argon2/releases/download/${version}/argon2-${version}.tbz"; + url = "https://github.com/Khady/ocaml-argon2/releases/download/${finalAttrs.version}/argon2-${finalAttrs.version}.tbz"; hash = "sha256-NDsOV4kPT2SnSfNHDBAK+VKZgHDIKxW+dNJ/C5bQ8gU="; }; @@ -37,4 +37,4 @@ buildDunePackage rec { license = lib.licenses.mit; maintainers = with lib.maintainers; [ naora ]; }; -} +}) From 9b7955bb1bc7caf67598063e0b9b66288379b20a Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:41 -0600 Subject: [PATCH 11/49] ocamlPackages.arp: migrate to finalAttrs --- pkgs/development/ocaml-modules/arp/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/arp/default.nix b/pkgs/development/ocaml-modules/arp/default.nix index c5487ab6e66b..c6a18ad87d88 100644 --- a/pkgs/development/ocaml-modules/arp/default.nix +++ b/pkgs/development/ocaml-modules/arp/default.nix @@ -16,12 +16,12 @@ mirage-vnetif, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "arp"; version = "4.0.0"; src = fetchurl { - url = "https://github.com/mirage/${pname}/releases/download/v${version}/${pname}-${version}.tbz"; + url = "https://github.com/mirage/arp/releases/download/v${finalAttrs.version}/arp-${finalAttrs.version}.tbz"; hash = "sha256-C2Bh/2NwZqCJEidCnkhwRMoW3AsbQtvwdFh9IiJkDaU="; }; @@ -52,4 +52,4 @@ buildDunePackage rec { license = lib.licenses.isc; maintainers = with lib.maintainers; [ sternenseemann ]; }; -} +}) From 9e69f22e6be2d7edba0b3900185ee8756c74550f Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:41 -0600 Subject: [PATCH 12/49] ocamlPackages.asai: migrate to finalAttrs --- pkgs/development/ocaml-modules/asai/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/ocaml-modules/asai/default.nix b/pkgs/development/ocaml-modules/asai/default.nix index 2a5a59895b6e..1e656924e91b 100644 --- a/pkgs/development/ocaml-modules/asai/default.nix +++ b/pkgs/development/ocaml-modules/asai/default.nix @@ -6,7 +6,7 @@ bwd, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "asai"; version = "0.3.1"; @@ -14,8 +14,8 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "RedPRL"; - repo = pname; - rev = version; + repo = "asai"; + rev = finalAttrs.version; hash = "sha256-IpRLX7umpmlNt2uV2MB+YvjAvNk0+gl5plbBExVvcdM="; }; @@ -30,4 +30,4 @@ buildDunePackage rec { license = lib.licenses.asl20; maintainers = [ lib.maintainers.vbgl ]; }; -} +}) From e05b4eb46fc6e63bf05380b14584d3dacb0c5c53 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:41 -0600 Subject: [PATCH 13/49] ocamlPackages.asetmap: migrate to finalAttrs --- pkgs/development/ocaml-modules/asetmap/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/asetmap/default.nix b/pkgs/development/ocaml-modules/asetmap/default.nix index 11cecd66cc9d..0c1037e1c5ff 100644 --- a/pkgs/development/ocaml-modules/asetmap/default.nix +++ b/pkgs/development/ocaml-modules/asetmap/default.nix @@ -7,11 +7,11 @@ ocaml, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "asetmap"; version = "0.8.1"; src = fetchurl { - url = "https://github.com/dbuenzli/asetmap/archive/refs/tags/v${version}.tar.gz"; + url = "https://github.com/dbuenzli/asetmap/archive/refs/tags/v${finalAttrs.version}.tar.gz"; sha256 = "051ky0k62xp4inwi6isif56hx5ggazv4jrl7s5lpvn9cj8329frj"; }; @@ -28,4 +28,4 @@ buildDunePackage rec { inherit (topkg) buildPhase installPhase; meta = { inherit (ocaml.meta) platforms; }; -} +}) From 003bc16759dfa955c80e1ae829353c064c53168a Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:41 -0600 Subject: [PATCH 14/49] ocamlPackages.asn1-combinators: migrate to finalAttrs --- .../ocaml-modules/asn1-combinators/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/ocaml-modules/asn1-combinators/default.nix b/pkgs/development/ocaml-modules/asn1-combinators/default.nix index 81e26af0a8e9..c40db11752c8 100644 --- a/pkgs/development/ocaml-modules/asn1-combinators/default.nix +++ b/pkgs/development/ocaml-modules/asn1-combinators/default.nix @@ -7,14 +7,14 @@ ohex, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { minimalOCamlVersion = "4.13.0"; pname = "asn1-combinators"; version = "0.3.2"; src = fetchurl { - url = "https://github.com/mirleft/ocaml-asn1-combinators/releases/download/v${version}/asn1-combinators-${version}.tbz"; + url = "https://github.com/mirleft/ocaml-asn1-combinators/releases/download/v${finalAttrs.version}/asn1-combinators-${finalAttrs.version}.tbz"; hash = "sha256-KyaYX24nIgc9zZ+ENVvWdX4SZDtaSOMLPAf/fPsNin8="; }; @@ -28,9 +28,9 @@ buildDunePackage rec { meta = { homepage = "https://github.com/mirleft/ocaml-asn1-combinators"; - changelog = "https://github.com/mirleft/ocaml-asn1-combinators/blob/v${version}/CHANGES.md"; + changelog = "https://github.com/mirleft/ocaml-asn1-combinators/blob/v${finalAttrs.version}/CHANGES.md"; description = "Combinators for expressing ASN.1 grammars in OCaml"; license = lib.licenses.isc; maintainers = with lib.maintainers; [ vbgl ]; }; -} +}) From f6a9e60070d0345324ee99def451b8e09ae0a45b Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:41 -0600 Subject: [PATCH 15/49] ocamlPackages.awa: migrate to finalAttrs --- pkgs/development/ocaml-modules/awa/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/ocaml-modules/awa/default.nix b/pkgs/development/ocaml-modules/awa/default.nix index 12380239dd06..397112faa857 100644 --- a/pkgs/development/ocaml-modules/awa/default.nix +++ b/pkgs/development/ocaml-modules/awa/default.nix @@ -19,12 +19,12 @@ mirage-mtime, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "awa"; version = "0.5.2"; src = fetchurl { - url = "https://github.com/mirage/awa-ssh/releases/download/v${version}/awa-${version}.tbz"; + url = "https://github.com/mirage/awa-ssh/releases/download/v${finalAttrs.version}/awa-${finalAttrs.version}.tbz"; hash = "sha256-64gloekVN0YsBwUodrJc6QaNU3PGKMIZMPJWvBfzaj0="; }; @@ -53,8 +53,8 @@ buildDunePackage rec { meta = { description = "SSH implementation in OCaml"; homepage = "https://github.com/mirage/awa-ssh"; - changelog = "https://github.com/mirage/awa-ssh/raw/v${version}/CHANGES.md"; + changelog = "https://github.com/mirage/awa-ssh/raw/v${finalAttrs.version}/CHANGES.md"; license = lib.licenses.isc; maintainers = [ lib.maintainers.sternenseemann ]; }; -} +}) From 107a12bcfc19b4be63788a8c0767938c7aa70e9f Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:41 -0600 Subject: [PATCH 16/49] ocamlPackages.b0: migrate to finalAttrs --- pkgs/development/ocaml-modules/b0/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/b0/default.nix b/pkgs/development/ocaml-modules/b0/default.nix index 090eeb488077..2f76da1dec9f 100644 --- a/pkgs/development/ocaml-modules/b0/default.nix +++ b/pkgs/development/ocaml-modules/b0/default.nix @@ -9,13 +9,13 @@ cmdliner, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "ocaml${ocaml.version}-b0"; version = "0.0.5"; src = fetchurl { - url = "${meta.homepage}/releases/b0-${version}.tbz"; + url = "https://erratique.ch/software/b0/releases/b0-${finalAttrs.version}.tbz"; sha256 = "sha256-ty04JQcP4RCme/VQw0ko2IBebWWX5cBU6nRTTeV1I/I="; }; @@ -56,4 +56,4 @@ stdenv.mkDerivation rec { maintainers = [ lib.maintainers.Julow ]; broken = !(lib.versionAtLeast ocaml.version "4.08"); }; -} +}) From a7f9e95e63882bc9c376eedbc23e2acf5c87907a Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:41 -0600 Subject: [PATCH 17/49] ocamlPackages.backoff: migrate to finalAttrs --- pkgs/development/ocaml-modules/backoff/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/backoff/default.nix b/pkgs/development/ocaml-modules/backoff/default.nix index a623ece4d230..6c0dcd488b5a 100644 --- a/pkgs/development/ocaml-modules/backoff/default.nix +++ b/pkgs/development/ocaml-modules/backoff/default.nix @@ -5,12 +5,12 @@ alcotest, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "backoff"; version = "0.1.1"; src = fetchurl { - url = "https://github.com/ocaml-multicore/backoff/releases/download/${version}/backoff-${version}.tbz"; + url = "https://github.com/ocaml-multicore/backoff/releases/download/${finalAttrs.version}/backoff-${finalAttrs.version}.tbz"; hash = "sha256-AL6jEbInsbwKVYedpNzjix/YRHtOTizxk6aVNzesnwM="; }; @@ -26,4 +26,4 @@ buildDunePackage rec { }; minimalOCamlVersion = "4.12"; -} +}) From 467160385323f5daf09690d045853cab1b09838e Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:42 -0600 Subject: [PATCH 18/49] ocamlPackages.bap: migrate to finalAttrs --- pkgs/development/ocaml-modules/bap/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/development/ocaml-modules/bap/default.nix b/pkgs/development/ocaml-modules/bap/default.nix index 2b9672a633e9..e6d88be9cb2b 100644 --- a/pkgs/development/ocaml-modules/bap/default.nix +++ b/pkgs/development/ocaml-modules/bap/default.nix @@ -42,7 +42,7 @@ z3, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "ocaml${ocaml.version}-bap"; version = "2.5.0+pr1621"; src = fetchFromGitHub { @@ -53,15 +53,15 @@ stdenv.mkDerivation rec { }; sigs = fetchurl { - url = "https://github.com/BinaryAnalysisPlatform/bap/releases/download/v${version}/sigs.zip"; + url = "https://github.com/BinaryAnalysisPlatform/bap/releases/download/v${finalAttrs.version}/sigs.zip"; sha256 = "0d69jd28z4g64mglq94kj5imhmk5f6sgcsh9q2nij3b0arpcliwk"; }; createFindlibDestdir = true; setupHook = writeText "setupHook.sh" '' - export CAML_LD_LIBRARY_PATH="''${CAML_LD_LIBRARY_PATH-}''${CAML_LD_LIBRARY_PATH:+:}''$1/lib/ocaml/${ocaml.version}/site-lib/ocaml${ocaml.version}-bap-${version}/" - export CAML_LD_LIBRARY_PATH="''${CAML_LD_LIBRARY_PATH-}''${CAML_LD_LIBRARY_PATH:+:}''$1/lib/ocaml/${ocaml.version}/site-lib/ocaml${ocaml.version}-bap-${version}-llvm-plugins/" + export CAML_LD_LIBRARY_PATH="''${CAML_LD_LIBRARY_PATH-}''${CAML_LD_LIBRARY_PATH:+:}''$1/lib/ocaml/${ocaml.version}/site-lib/ocaml${ocaml.version}-bap-${finalAttrs.version}/" + export CAML_LD_LIBRARY_PATH="''${CAML_LD_LIBRARY_PATH-}''${CAML_LD_LIBRARY_PATH:+:}''$1/lib/ocaml/${ocaml.version}/site-lib/ocaml${ocaml.version}-bap-${finalAttrs.version}-llvm-plugins/" ''; nativeBuildInputs = [ @@ -134,7 +134,7 @@ stdenv.mkDerivation rec { ''; configureFlags = [ - "--enable-everything ${disableIda} ${disableGhidra}" + "--enable-everything ${finalAttrs.disableIda} ${finalAttrs.disableGhidra}" "--with-llvm-config=${llvm.dev}/bin/llvm-config" ]; @@ -146,4 +146,4 @@ stdenv.mkDerivation rec { mainProgram = "bap"; broken = lib.versionOlder ocaml.version "4.08"; }; -} +}) From edc40fc0170071512a7c9600a9792168d8ed2026 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:42 -0600 Subject: [PATCH 19/49] ocamlPackages.base64: migrate to finalAttrs --- pkgs/development/ocaml-modules/base64/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/base64/default.nix b/pkgs/development/ocaml-modules/base64/default.nix index 08b028c874ee..0638e50566e5 100644 --- a/pkgs/development/ocaml-modules/base64/default.nix +++ b/pkgs/development/ocaml-modules/base64/default.nix @@ -9,14 +9,14 @@ rresult, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "base64"; version = "3.5.2"; minimalOCamlVersion = "4.07"; src = fetchurl { - url = "https://github.com/mirage/ocaml-base64/releases/download/v${version}/base64-${version}.tbz"; + url = "https://github.com/mirage/ocaml-base64/releases/download/v${finalAttrs.version}/base64-${finalAttrs.version}.tbz"; hash = "sha256-s/XOMBqnLHAy75C+IzLXL/OWKSLADuKuxryt4Yei9Zs="; }; @@ -36,4 +36,4 @@ buildDunePackage rec { license = lib.licenses.isc; maintainers = with lib.maintainers; [ vbgl ]; }; -} +}) From 4758139bec027fdedfbeb9b5d4e5f74d22dcf11b Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:42 -0600 Subject: [PATCH 20/49] ocamlPackages.bdd: migrate to finalAttrs --- pkgs/development/ocaml-modules/bdd/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/bdd/default.nix b/pkgs/development/ocaml-modules/bdd/default.nix index b622de57ce99..1bf495d2223b 100644 --- a/pkgs/development/ocaml-modules/bdd/default.nix +++ b/pkgs/development/ocaml-modules/bdd/default.nix @@ -5,14 +5,14 @@ stdlib-shims, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "bdd"; version = "0.5"; src = fetchFromGitHub { owner = "backtracking"; repo = "ocaml-bdd"; - tag = version; + tag = finalAttrs.version; hash = "sha256-bhgKpo7gGkjbI75pzckfQulZnTstj6G5QcErLgIGneU="; }; @@ -32,4 +32,4 @@ buildDunePackage rec { license = lib.licenses.lgpl21Only; maintainers = with lib.maintainers; [ wegank ]; }; -} +}) From c7d719e85a54f8963e0b72ca24b3bb97b377457d Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:42 -0600 Subject: [PATCH 21/49] ocamlPackages.benchmark: migrate to finalAttrs --- pkgs/development/ocaml-modules/benchmark/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/ocaml-modules/benchmark/default.nix b/pkgs/development/ocaml-modules/benchmark/default.nix index c039fe966f81..e3bce24b52fb 100644 --- a/pkgs/development/ocaml-modules/benchmark/default.nix +++ b/pkgs/development/ocaml-modules/benchmark/default.nix @@ -4,14 +4,14 @@ buildDunePackage, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "benchmark"; version = "1.7"; minimalOCamlVersion = "4.03"; src = fetchurl { - url = "https://github.com/Chris00/ocaml-benchmark/releases/download/v${version}/benchmark-${version}.tbz"; + url = "https://github.com/Chris00/ocaml-benchmark/releases/download/v${finalAttrs.version}/benchmark-${finalAttrs.version}.tbz"; hash = "sha256-Aij7vJzamNWQfjLeGgENlIp6Il8+Wc9hsahr4eDGs68="; }; @@ -23,8 +23,8 @@ buildDunePackage rec { your functions and to easily compare the results. A statistical test is used to determine whether the results truly differ. ''; - changelog = "https://raw.githubusercontent.com/Chris00/ocaml-benchmark/refs/tags/v${version}/CHANGES.md"; + changelog = "https://raw.githubusercontent.com/Chris00/ocaml-benchmark/refs/tags/v${finalAttrs.version}/CHANGES.md"; license = lib.licenses.lgpl3; maintainers = with lib.maintainers; [ momeemt ]; }; -} +}) From 7306740d129477248df2f906e1760d5ddde5517c Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:42 -0600 Subject: [PATCH 22/49] ocamlPackages.bencode: migrate to finalAttrs --- pkgs/development/ocaml-modules/bencode/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/ocaml-modules/bencode/default.nix b/pkgs/development/ocaml-modules/bencode/default.nix index 310d7f24d006..91c74c511cf3 100644 --- a/pkgs/development/ocaml-modules/bencode/default.nix +++ b/pkgs/development/ocaml-modules/bencode/default.nix @@ -6,7 +6,7 @@ qcheck, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "bencode"; version = "2.0"; minimalOCamlVersion = "4.02.0"; @@ -14,7 +14,7 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "rgrinberg"; repo = "bencode"; - tag = version; + tag = finalAttrs.version; hash = "sha256-sEMS9oBOPeFX1x7cHjbQhCD2QI5yqC+550pPqqMsVws="; }; @@ -27,8 +27,8 @@ buildDunePackage rec { meta = { description = "Bencode (.torrent file format) reader/writer in OCaml "; homepage = "https://github.com/rgrinberg/bencode"; - changelog = "https://github.com/rgrinberg/bencode/blob/${version}/Changelog.md"; + changelog = "https://github.com/rgrinberg/bencode/blob/${finalAttrs.version}/Changelog.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ infinidoge ]; }; -} +}) From 8634cca7d8c1970ebcc4beac4a8f51020c2939ce Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:42 -0600 Subject: [PATCH 23/49] ocamlPackages.bigarray-overlap: migrate to finalAttrs --- pkgs/development/ocaml-modules/bigarray-overlap/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/bigarray-overlap/default.nix b/pkgs/development/ocaml-modules/bigarray-overlap/default.nix index a1610e3b6e04..f8b5c320a598 100644 --- a/pkgs/development/ocaml-modules/bigarray-overlap/default.nix +++ b/pkgs/development/ocaml-modules/bigarray-overlap/default.nix @@ -6,12 +6,12 @@ pkg-config, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "bigarray-overlap"; version = "0.2.1"; src = fetchurl { - url = "https://github.com/dinosaure/overlap/releases/download/v${version}/bigarray-overlap-${version}.tbz"; + url = "https://github.com/dinosaure/overlap/releases/download/v${finalAttrs.version}/bigarray-overlap-${finalAttrs.version}.tbz"; hash = "sha256-L1IKxHAFTjNYg+upJUvyi2Z23bV3U8+1iyLPhK4aZuA="; }; @@ -28,4 +28,4 @@ buildDunePackage rec { license = lib.licenses.mit; maintainers = [ lib.maintainers.sternenseemann ]; }; -} +}) From 564437b4a65e896334b277660b497eba3cf47086 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:42 -0600 Subject: [PATCH 24/49] ocamlPackages.bigstring: migrate to finalAttrs --- pkgs/development/ocaml-modules/bigstring/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/bigstring/default.nix b/pkgs/development/ocaml-modules/bigstring/default.nix index 6f976aeb544b..f7e3ee06b9ef 100644 --- a/pkgs/development/ocaml-modules/bigstring/default.nix +++ b/pkgs/development/ocaml-modules/bigstring/default.nix @@ -5,7 +5,7 @@ ocaml, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "bigstring"; version = "0.3"; @@ -20,7 +20,7 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "c-cube"; repo = "ocaml-bigstring"; - rev = version; + rev = finalAttrs.version; sha256 = "0bkxwdcswy80f6rmx5wjza92xzq4rdqsb4a9fm8aav8bdqx021n8"; }; @@ -33,4 +33,4 @@ buildDunePackage rec { license = lib.licenses.bsd2; maintainers = [ lib.maintainers.alexfmpe ]; }; -} +}) From 278438e1d8227d28132fb245a225de64a7420717 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:43 -0600 Subject: [PATCH 25/49] ocamlPackages.bigstringaf: migrate to finalAttrs --- .../ocaml-modules/bigstringaf/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/development/ocaml-modules/bigstringaf/default.nix b/pkgs/development/ocaml-modules/bigstringaf/default.nix index 1de4d8312dfb..fd2fd76ff304 100644 --- a/pkgs/development/ocaml-modules/bigstringaf/default.nix +++ b/pkgs/development/ocaml-modules/bigstringaf/default.nix @@ -7,7 +7,7 @@ dune-configurator, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "bigstringaf"; version = "0.10.0"; @@ -15,8 +15,8 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "inhabitedtype"; - repo = pname; - tag = version; + repo = "bigstringaf"; + tag = finalAttrs.version; hash = "sha256-p1hdB3ArOd2UX7S6YvXCFbYjEiXdMDmBaC/lFQgua7Q="; }; @@ -39,9 +39,9 @@ buildDunePackage rec { So here they are. Go crazy. ''; - changelog = "https://github.com/inhabitedtype/bigstringaf/releases/tag/${version}"; + changelog = "https://github.com/inhabitedtype/bigstringaf/releases/tag/${finalAttrs.version}"; license = lib.licenses.bsd3; maintainers = [ lib.maintainers.vbgl ]; - inherit (src.meta) homepage; + inherit (finalAttrs.src.meta) homepage; }; -} +}) From 1e2480abbc69a1d5cc976427ff2d4d5c40c60451 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:43 -0600 Subject: [PATCH 26/49] ocamlPackages.bindlib: migrate to finalAttrs --- pkgs/development/ocaml-modules/bindlib/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/ocaml-modules/bindlib/default.nix b/pkgs/development/ocaml-modules/bindlib/default.nix index 5adbc9e31070..bf0efa0ae9a9 100644 --- a/pkgs/development/ocaml-modules/bindlib/default.nix +++ b/pkgs/development/ocaml-modules/bindlib/default.nix @@ -6,7 +6,7 @@ timed, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "bindlib"; version = "6.0.0"; @@ -14,8 +14,8 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "rlepigre"; - repo = "ocaml-${pname}"; - rev = version; + repo = "ocaml-bindlib"; + rev = finalAttrs.version; hash = "sha256-058yMbz9ExvgNG/kY9tPk70XSeVRSSKVg4n4F4fmPu4="; }; @@ -29,7 +29,7 @@ buildDunePackage rec { homepage = "https://rlepigre.github.io/ocaml-bindlib"; description = "Efficient binder representation in Ocaml"; license = lib.licenses.gpl3; - changelog = "https://github.com/rlepigre/ocaml-bindlib/raw/${version}/CHANGELOG.md"; + changelog = "https://github.com/rlepigre/ocaml-bindlib/raw/${finalAttrs.version}/CHANGELOG.md"; maintainers = with lib.maintainers; [ bcdarwin ]; }; -} +}) From d7093b0fc5535a75071bbc4685d73f26384c8afa Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:43 -0600 Subject: [PATCH 27/49] ocamlPackages.biniou: migrate to finalAttrs --- pkgs/development/ocaml-modules/biniou/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/biniou/default.nix b/pkgs/development/ocaml-modules/biniou/default.nix index 4dfc9496fb8a..6611099893e9 100644 --- a/pkgs/development/ocaml-modules/biniou/default.nix +++ b/pkgs/development/ocaml-modules/biniou/default.nix @@ -6,12 +6,12 @@ easy-format, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "biniou"; version = "1.2.2"; src = fetchurl { - url = "https://github.com/ocaml-community/biniou/releases/download/${version}/biniou-${version}.tbz"; + url = "https://github.com/ocaml-community/biniou/releases/download/${finalAttrs.version}/biniou-${finalAttrs.version}.tbz"; hash = "sha256-i/P/F80Oyy1rbR2UywjvCJ1Eyu+W6brmvmg51Cj6MY8="; }; @@ -27,4 +27,4 @@ buildDunePackage rec { maintainers = [ lib.maintainers.vbgl ]; mainProgram = "bdump"; }; -} +}) From 8154d368fced23be2e6b6803dfd03fe96a4ee8a0 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:43 -0600 Subject: [PATCH 28/49] ocamlPackages.binning: migrate to finalAttrs --- pkgs/development/ocaml-modules/binning/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/binning/default.nix b/pkgs/development/ocaml-modules/binning/default.nix index e97db4daddae..90eafe19b1e8 100644 --- a/pkgs/development/ocaml-modules/binning/default.nix +++ b/pkgs/development/ocaml-modules/binning/default.nix @@ -4,14 +4,14 @@ fetchurl, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "binning"; version = "0.0.0"; minimalOCamlVersion = "4.08"; src = fetchurl { - url = "https://github.com/pveber/binning/releases/download/v${version}/binning-v${version}.tbz"; + url = "https://github.com/pveber/binning/releases/download/v${finalAttrs.version}/binning-v${finalAttrs.version}.tbz"; hash = "sha256-eG+xctsbc7lQ5pFOUtJ8rjNW/06gygwLADq7yc8Yf/c="; }; @@ -21,4 +21,4 @@ buildDunePackage rec { homepage = "https://github.com/pveber/binning/"; maintainers = [ lib.maintainers.vbgl ]; }; -} +}) From 7f0336621f5921d959b408af79c776003acd3f8e Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:43 -0600 Subject: [PATCH 29/49] ocamlPackages.biotk: migrate to finalAttrs --- pkgs/development/ocaml-modules/biotk/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/biotk/default.nix b/pkgs/development/ocaml-modules/biotk/default.nix index da97a0df3554..991cc0d35c5d 100644 --- a/pkgs/development/ocaml-modules/biotk/default.nix +++ b/pkgs/development/ocaml-modules/biotk/default.nix @@ -19,14 +19,14 @@ vg, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "biotk"; version = "0.3"; minimalOCamlVersion = "4.13"; src = fetchurl { - url = "https://github.com/pveber/biotk/releases/download/v${version}/biotk-${version}.tbz"; + url = "https://github.com/pveber/biotk/releases/download/v${finalAttrs.version}/biotk-${finalAttrs.version}.tbz"; hash = "sha256-9eRd3qYteUxu/xNEUER/DHodr6cTCuPtSKr38x32gig="; }; @@ -54,4 +54,4 @@ buildDunePackage rec { description = "Toolkit for bioinformatics in OCaml"; license = lib.licenses.cecill-c; }; -} +}) From f16354975409a79bde23b6274fc593ad7726de77 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:43 -0600 Subject: [PATCH 30/49] ocamlPackages.bisect_ppx: migrate to finalAttrs --- pkgs/development/ocaml-modules/bisect_ppx/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/bisect_ppx/default.nix b/pkgs/development/ocaml-modules/bisect_ppx/default.nix index e3a8518b7260..62356c085733 100644 --- a/pkgs/development/ocaml-modules/bisect_ppx/default.nix +++ b/pkgs/development/ocaml-modules/bisect_ppx/default.nix @@ -7,14 +7,14 @@ ppxlib, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "bisect_ppx"; version = "2.8.3"; src = fetchFromGitHub { owner = "aantron"; repo = "bisect_ppx"; - rev = version; + rev = finalAttrs.version; hash = "sha256-3qXobZLPivFDtls/3WNqDuAgWgO+tslJV47kjQPoi6o="; }; @@ -48,4 +48,4 @@ buildDunePackage rec { maintainers = with lib.maintainers; [ momeemt ]; mainProgram = "bisect-ppx-report"; }; -} +}) From cd83d2f2c75fd8c17b28f71c2c86f743a5a3c781 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:43 -0600 Subject: [PATCH 31/49] ocamlPackages.bistro: migrate to finalAttrs --- pkgs/development/ocaml-modules/bistro/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/ocaml-modules/bistro/default.nix b/pkgs/development/ocaml-modules/bistro/default.nix index e717ae737d51..62ae1e930232 100644 --- a/pkgs/development/ocaml-modules/bistro/default.nix +++ b/pkgs/development/ocaml-modules/bistro/default.nix @@ -16,13 +16,13 @@ ppxlib, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "bistro"; version = "unstable-2024-05-17"; src = fetchFromGitHub { owner = "pveber"; - repo = pname; + repo = "bistro"; rev = "d44c44b52148e58ca3842c3efedf3115e376d800"; sha256 = "sha256-naoCEVBfydqSeGGbXYBXfg0PP+Fzk05jFoul7XAz/tM="; }; @@ -44,10 +44,10 @@ buildDunePackage rec { minimalOCamlVersion = "4.14"; meta = { - inherit (src.meta) homepage; + inherit (finalAttrs.src.meta) homepage; description = "Build and execute typed scientific workflows"; maintainers = [ lib.maintainers.vbgl ]; license = lib.licenses.gpl2; broken = lib.versionAtLeast ppxlib.version "0.36"; }; -} +}) From ffb21cce7ea427cd8b37fde2f144b7bba3f55345 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:44 -0600 Subject: [PATCH 32/49] ocamlPackages.bitstring: migrate to finalAttrs --- pkgs/development/ocaml-modules/bitstring/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/ocaml-modules/bitstring/default.nix b/pkgs/development/ocaml-modules/bitstring/default.nix index 106edfd31864..4c612b177a7c 100644 --- a/pkgs/development/ocaml-modules/bitstring/default.nix +++ b/pkgs/development/ocaml-modules/bitstring/default.nix @@ -5,7 +5,7 @@ stdlib-shims, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "bitstring"; version = "4.1.1"; @@ -13,8 +13,8 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "xguerin"; - repo = pname; - rev = "v${version}"; + repo = "bitstring"; + rev = "v${finalAttrs.version}"; sha256 = "sha256-eO7/S9PoMybZPnQQ+q9qbqKpYO4Foc9OjW4uiwwNds8="; }; @@ -26,4 +26,4 @@ buildDunePackage rec { license = lib.licenses.lgpl21Plus; maintainers = [ lib.maintainers.maurer ]; }; -} +}) From 760177cc80f3a21edf8e8047e8cd64b2390fc912 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:44 -0600 Subject: [PATCH 33/49] ocamlPackages.bitv: migrate to finalAttrs --- pkgs/development/ocaml-modules/bitv/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/ocaml-modules/bitv/default.nix b/pkgs/development/ocaml-modules/bitv/default.nix index 1fcc54f753ed..1f6debef31ef 100644 --- a/pkgs/development/ocaml-modules/bitv/default.nix +++ b/pkgs/development/ocaml-modules/bitv/default.nix @@ -4,7 +4,7 @@ buildDunePackage, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "bitv"; version = "2.1"; minimalOCamlVersion = "4.08"; @@ -12,7 +12,7 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "backtracking"; repo = "bitv"; - tag = version; + tag = finalAttrs.version; hash = "sha256-jlpVMqYOiKxoU6wuVeYlOC5wRtF4aakljKpop6dfu8w="; }; @@ -20,7 +20,7 @@ buildDunePackage rec { description = "Bit vector library for OCaml"; license = lib.licenses.lgpl21; homepage = "https://github.com/backtracking/bitv"; - changelog = "https://github.com/backtracking/bitv/releases/tag/${version}"; + changelog = "https://github.com/backtracking/bitv/releases/tag/${finalAttrs.version}"; maintainers = [ lib.maintainers.vbgl ]; }; -} +}) From 3fa6d0621ffdc6346df055dd728e270e1411694a Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:44 -0600 Subject: [PATCH 34/49] ocamlPackages.bjack: migrate to finalAttrs --- pkgs/development/ocaml-modules/bjack/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/bjack/default.nix b/pkgs/development/ocaml-modules/bjack/default.nix index 58a3a9dc1989..0e489d760693 100644 --- a/pkgs/development/ocaml-modules/bjack/default.nix +++ b/pkgs/development/ocaml-modules/bjack/default.nix @@ -7,14 +7,14 @@ libjack2, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "bjack"; version = "0.1.6"; src = fetchFromGitHub { owner = "savonet"; repo = "ocaml-bjack"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; hash = "sha256-jIxxqBVWphWYyLh+24rTxk4WWfPPdGCvNdevFJEKw70="; }; @@ -30,4 +30,4 @@ buildDunePackage rec { license = lib.licenses.lgpl21Only; maintainers = with lib.maintainers; [ dandellion ]; }; -} +}) From e5945f528464479043aa0381f326dfbed053216f Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:44 -0600 Subject: [PATCH 35/49] ocamlPackages.bls12-381-signature: migrate to finalAttrs --- .../ocaml-modules/bls12-381-signature/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/bls12-381-signature/default.nix b/pkgs/development/ocaml-modules/bls12-381-signature/default.nix index cfb03c5e6d0b..1ba61c1c35a5 100644 --- a/pkgs/development/ocaml-modules/bls12-381-signature/default.nix +++ b/pkgs/development/ocaml-modules/bls12-381-signature/default.nix @@ -8,11 +8,11 @@ integers_stubs_js, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "bls12-381-signature"; version = "1.0.0"; src = fetchzip { - url = "https://gitlab.com/nomadic-labs/cryptography/ocaml-${pname}/-/archive/${version}/ocaml-bls12-381-signature-${version}.tar.bz2"; + url = "https://gitlab.com/nomadic-labs/cryptography/ocaml-bls12-381-signature/-/archive/${finalAttrs.version}/ocaml-bls12-381-signature-${finalAttrs.version}.tar.bz2"; sha256 = "sha256-KaUpAT+BWxmUP5obi4loR9vVUeQmz3p3zG3CBolUuL4="; }; @@ -36,4 +36,4 @@ buildDunePackage rec { homepage = "https://gitlab.com/nomadic-labs/cryptography/ocaml-bls12-381-signature"; maintainers = [ lib.maintainers.ulrikstrid ]; }; -} +}) From ecc1e043187a9a7ff2948a58bb2e2aaa3974ca86 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:44 -0600 Subject: [PATCH 36/49] ocamlPackages.bls12-381: migrate to finalAttrs --- pkgs/development/ocaml-modules/bls12-381/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/bls12-381/default.nix b/pkgs/development/ocaml-modules/bls12-381/default.nix index 4f7db59d9adf..a31660575fe1 100644 --- a/pkgs/development/ocaml-modules/bls12-381/default.nix +++ b/pkgs/development/ocaml-modules/bls12-381/default.nix @@ -10,13 +10,13 @@ alcotest, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "bls12-381"; version = "6.1.0"; src = fetchFromGitLab { owner = "nomadic-labs"; repo = "cryptography/ocaml-bls12-381"; - rev = version; + rev = finalAttrs.version; hash = "sha256-z2ZSOrXgm+XjdrY91vqxXSKhA0DyJz6JkkNljDZznX8="; }; @@ -46,4 +46,4 @@ buildDunePackage rec { license = lib.licenses.mit; maintainers = [ lib.maintainers.ulrikstrid ]; }; -} +}) From 16446fdb403779cf2cd66eb21667af8fc0bf1f0e Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:44 -0600 Subject: [PATCH 37/49] ocamlPackages.bls12-381: migrate to finalAttrs --- pkgs/development/ocaml-modules/bls12-381/gen.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/bls12-381/gen.nix b/pkgs/development/ocaml-modules/bls12-381/gen.nix index 36bc1c1e2e6d..d5d5dd8d9c8c 100644 --- a/pkgs/development/ocaml-modules/bls12-381/gen.nix +++ b/pkgs/development/ocaml-modules/bls12-381/gen.nix @@ -6,14 +6,14 @@ zarith, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "bls12-381-gen"; version = "0.4.4"; src = fetchFromGitLab { owner = "dannywillems"; repo = "ocaml-bls12-381"; - rev = "${version}-legacy"; + rev = "${finalAttrs.version}-legacy"; sha256 = "qocIfQdv9rniOUykRulu2zWsqkzT0OrsGczgVKALRuk="; }; @@ -34,4 +34,4 @@ buildDunePackage rec { license = lib.licenses.mit; maintainers = [ lib.maintainers.ulrikstrid ]; }; -} +}) From 1cc29ca8cf61a32259e3ae41395d5bf1e1834316 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:44 -0600 Subject: [PATCH 38/49] ocamlPackages.bos: migrate to finalAttrs --- pkgs/development/ocaml-modules/bos/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/bos/default.nix b/pkgs/development/ocaml-modules/bos/default.nix index 810e4d35f89c..9cc68872f68a 100644 --- a/pkgs/development/ocaml-modules/bos/default.nix +++ b/pkgs/development/ocaml-modules/bos/default.nix @@ -13,12 +13,12 @@ rresult, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "ocaml${ocaml.version}-bos"; version = "0.2.1"; src = fetchurl { - url = "https://erratique.ch/software/bos/releases/bos-${version}.tbz"; + url = "https://erratique.ch/software/bos/releases/bos-${finalAttrs.version}.tbz"; sha256 = "sha256-2NYueGsQ1pfgRXIFqO7eqifrzJDxhV8Y3xkMrC49jzc="; }; @@ -48,4 +48,4 @@ stdenv.mkDerivation rec { maintainers = [ lib.maintainers.vbgl ]; inherit (ocaml.meta) platforms; }; -} +}) From 4190cd949ba9e20460136896486187fa867bf0bb Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:45 -0600 Subject: [PATCH 39/49] ocamlPackages.brr: migrate to finalAttrs --- pkgs/development/ocaml-modules/brr/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/brr/default.nix b/pkgs/development/ocaml-modules/brr/default.nix index 12a8a1635fd9..d16508db6303 100644 --- a/pkgs/development/ocaml-modules/brr/default.nix +++ b/pkgs/development/ocaml-modules/brr/default.nix @@ -10,11 +10,11 @@ js_of_ocaml-toplevel, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "ocaml${ocaml.version}-brr"; version = "0.0.8"; src = fetchurl { - url = "https://erratique.ch/software/brr/releases/brr-${version}.tbz"; + url = "https://erratique.ch/software/brr/releases/brr-${finalAttrs.version}.tbz"; hash = "sha256-g4ROHy9rHlaEFi5+euyRuEKK5HwKJWPmFkdvFhdIYgg="; }; buildInputs = [ @@ -36,4 +36,4 @@ stdenv.mkDerivation rec { maintainers = [ lib.maintainers.vbgl ]; inherit (ocaml.meta) platforms; }; -} +}) From 0e463776d723bf357ee7491f78211b6fb49a1d36 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:45 -0600 Subject: [PATCH 40/49] ocamlPackages.bstr: migrate to finalAttrs --- pkgs/development/ocaml-modules/bstr/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/bstr/default.nix b/pkgs/development/ocaml-modules/bstr/default.nix index 37e342db4400..c6f7b2b44d28 100644 --- a/pkgs/development/ocaml-modules/bstr/default.nix +++ b/pkgs/development/ocaml-modules/bstr/default.nix @@ -4,14 +4,14 @@ lib, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "bstr"; version = "0.0.2"; minimalOCamlVersion = "4.13"; src = fetchurl { - url = "https://github.com/robur-coop/bstr/releases/download/v${version}/bstr-${version}.tbz"; + url = "https://github.com/robur-coop/bstr/releases/download/v${finalAttrs.version}/bstr-${finalAttrs.version}.tbz"; hash = "sha256-/zvzCBzT014OesTmxGBDB98ZRU++YNDLUZ8uaDK3keM="; }; @@ -21,4 +21,4 @@ buildDunePackage rec { license = lib.licenses.mit; maintainers = [ lib.maintainers.vbgl ]; }; -} +}) From 836946d4bdf814a5e6d49320ad7c6bc3bfc77bfe Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:45 -0600 Subject: [PATCH 41/49] ocamlPackages.bwd: migrate to finalAttrs --- pkgs/development/ocaml-modules/bwd/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/ocaml-modules/bwd/default.nix b/pkgs/development/ocaml-modules/bwd/default.nix index c6179b4f31e3..837802bf25d2 100644 --- a/pkgs/development/ocaml-modules/bwd/default.nix +++ b/pkgs/development/ocaml-modules/bwd/default.nix @@ -5,7 +5,7 @@ qcheck-core, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "bwd"; version = "2.3.0"; @@ -15,7 +15,7 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "RedPRL"; repo = "ocaml-bwd"; - rev = version; + rev = finalAttrs.version; hash = "sha256-rzn0U/D6kPNsH5hBTElc3d1jfKbgKbjA2JHicpaJtu4="; }; @@ -25,8 +25,8 @@ buildDunePackage rec { meta = { description = "Backward Lists"; homepage = "https://github.com/RedPRL/ocaml-bwd"; - changelog = "https://github.com/RedPRL/ocaml-bwd/blob/${version}/CHANGELOG.markdown"; + changelog = "https://github.com/RedPRL/ocaml-bwd/blob/${finalAttrs.version}/CHANGELOG.markdown"; license = lib.licenses.asl20; maintainers = [ lib.maintainers.vbgl ]; }; -} +}) From 70906b13b436402453f7fe6b724c5ce1e504ce74 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:45 -0600 Subject: [PATCH 42/49] ocamlPackages.bytestring: migrate to finalAttrs --- pkgs/development/ocaml-modules/bytestring/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/bytestring/default.nix b/pkgs/development/ocaml-modules/bytestring/default.nix index ddf130ac8e28..49a4750b0d01 100644 --- a/pkgs/development/ocaml-modules/bytestring/default.nix +++ b/pkgs/development/ocaml-modules/bytestring/default.nix @@ -10,14 +10,14 @@ qcheck, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "bytestring"; version = "0.0.8"; minimalOCamlVersion = "5.1"; src = fetchurl { - url = "https://github.com/riot-ml/riot/releases/download/${version}/riot-${version}.tbz"; + url = "https://github.com/riot-ml/riot/releases/download/${finalAttrs.version}/riot-${finalAttrs.version}.tbz"; hash = "sha256-SsiDz53b9bMIT9Q3IwDdB3WKy98WSd9fiieU41qZpeE="; }; @@ -42,4 +42,4 @@ buildDunePackage rec { license = lib.licenses.mit; maintainers = [ ]; }; -} +}) From 6a0c48138cdb377f08e1e58e521ced98928f832f Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:45 -0600 Subject: [PATCH 43/49] ocamlPackages.ca-certs-nss: migrate to finalAttrs --- pkgs/development/ocaml-modules/ca-certs-nss/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/ca-certs-nss/default.nix b/pkgs/development/ocaml-modules/ca-certs-nss/default.nix index 1b30fcfef973..004d6c43e0b9 100644 --- a/pkgs/development/ocaml-modules/ca-certs-nss/default.nix +++ b/pkgs/development/ocaml-modules/ca-certs-nss/default.nix @@ -12,14 +12,14 @@ alcotest, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "ca-certs-nss"; version = "3.118"; minimalOCamlVersion = "4.13"; src = fetchurl { - url = "https://github.com/mirage/ca-certs-nss/releases/download/v${version}/ca-certs-nss-${version}.tbz"; + url = "https://github.com/mirage/ca-certs-nss/releases/download/v${finalAttrs.version}/ca-certs-nss-${finalAttrs.version}.tbz"; hash = "sha256-BthKUUeuf3jFRmQzw0U9SEbvRqcVc1UKHmb4+YePRio="; }; @@ -46,4 +46,4 @@ buildDunePackage rec { maintainers = [ lib.maintainers.sternenseemann ]; mainProgram = "extract-from-certdata"; }; -} +}) From e8b0c6fa7caf03a3cd79df72e12840f25f4279a6 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:45 -0600 Subject: [PATCH 44/49] ocamlPackages.coin: migrate to finalAttrs --- pkgs/development/ocaml-modules/coin/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/coin/default.nix b/pkgs/development/ocaml-modules/coin/default.nix index 487c9f6c8c15..50b309d26f0e 100644 --- a/pkgs/development/ocaml-modules/coin/default.nix +++ b/pkgs/development/ocaml-modules/coin/default.nix @@ -7,13 +7,13 @@ re, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "coin"; version = "0.1.4"; minimalOCamlVersion = "4.03"; src = fetchurl { - url = "https://github.com/mirage/coin/releases/download/v${version}/coin-${version}.tbz"; + url = "https://github.com/mirage/coin/releases/download/v${finalAttrs.version}/coin-${finalAttrs.version}.tbz"; sha256 = "sha256:0069qqswd1ik5ay3d5q1v1pz0ql31kblfsnv0ax0z8jwvacp3ack"; }; @@ -34,4 +34,4 @@ buildDunePackage rec { maintainers = [ ]; mainProgram = "coin.generate"; }; -} +}) From 1a692f944965cc8fe9352c411bb0d69c06e41d78 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:45 -0600 Subject: [PATCH 45/49] ocamlPackages.frontc: migrate to finalAttrs --- pkgs/development/ocaml-modules/frontc/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/ocaml-modules/frontc/default.nix b/pkgs/development/ocaml-modules/frontc/default.nix index 3f204ad06b68..2f6ee7529693 100644 --- a/pkgs/development/ocaml-modules/frontc/default.nix +++ b/pkgs/development/ocaml-modules/frontc/default.nix @@ -6,14 +6,14 @@ menhir, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "FrontC"; version = "4.1.0"; src = fetchFromGitHub { owner = "BinaryAnalysisPlatform"; repo = "FrontC"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; sha256 = "1mi1vh4qgscnb470qwidccaqd068j1bqlz6pf6wddk21paliwnqb"; }; @@ -22,10 +22,10 @@ buildDunePackage rec { nativeBuildInputs = [ menhir ]; meta = { - inherit (src.meta) homepage; + inherit (finalAttrs.src.meta) homepage; inherit (ocaml.meta) platforms; description = "C Parsing Library"; license = lib.licenses.lgpl21; maintainers = [ lib.maintainers.maurer ]; }; -} +}) From e86f21205abd6cb6098a6a99bb1f8332efae0cf3 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:46 -0600 Subject: [PATCH 46/49] ocamlPackages.mirage-crypto: migrate to finalAttrs --- pkgs/development/ocaml-modules/mirage-crypto/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/ocaml-modules/mirage-crypto/default.nix b/pkgs/development/ocaml-modules/mirage-crypto/default.nix index 9a774afcedde..ddfd916532f7 100644 --- a/pkgs/development/ocaml-modules/mirage-crypto/default.nix +++ b/pkgs/development/ocaml-modules/mirage-crypto/default.nix @@ -10,14 +10,14 @@ ocaml-freestanding, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { minimalOCamlVersion = "4.13"; pname = "mirage-crypto"; version = "2.0.2"; src = fetchurl { - url = "https://github.com/mirage/mirage-crypto/releases/download/v${version}/mirage-crypto-${version}.tbz"; + url = "https://github.com/mirage/mirage-crypto/releases/download/v${finalAttrs.version}/mirage-crypto-${finalAttrs.version}.tbz"; hash = "sha256-c5qdOfNAJ/vJNVf4fFysQZClK92t/3LyEvqoA9YhWHQ="; }; @@ -38,7 +38,7 @@ buildDunePackage rec { meta = { homepage = "https://github.com/mirage/mirage-crypto"; description = "Simple symmetric cryptography for the modern age"; - changelog = "https://raw.githubusercontent.com/mirage/mirage-crypto/refs/tags/v${version}/CHANGES.md"; + changelog = "https://raw.githubusercontent.com/mirage/mirage-crypto/refs/tags/v${finalAttrs.version}/CHANGES.md"; license = with lib.licenses; [ isc # default license bsd2 # mirage-crypto-rng-mirage @@ -49,4 +49,4 @@ buildDunePackage rec { momeemt ]; }; -} +}) From eb5893727fbf0edf00772f06bbde270d8af8b4e3 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:46 -0600 Subject: [PATCH 47/49] ocamlPackages.mirage: migrate to finalAttrs --- pkgs/development/ocaml-modules/mirage/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/mirage/default.nix b/pkgs/development/ocaml-modules/mirage/default.nix index 090df1651e9c..e0fb7af26d94 100644 --- a/pkgs/development/ocaml-modules/mirage/default.nix +++ b/pkgs/development/ocaml-modules/mirage/default.nix @@ -14,7 +14,7 @@ uri, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "mirage"; inherit (mirage-runtime) version src; @@ -43,11 +43,11 @@ buildDunePackage rec { installPhase = '' runHook preInstall - dune install --prefix=$out --libdir=$dev/lib/ocaml/${ocaml.version}/site-lib/ ${pname} + dune install --prefix=$out --libdir=$dev/lib/ocaml/${ocaml.version}/site-lib/ mirage runHook postInstall ''; meta = mirage-runtime.meta // { description = "MirageOS library operating system"; }; -} +}) From 62f6c37aff91b8726763a2a4b2be034286e59ffb Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:46 -0600 Subject: [PATCH 48/49] ocamlPackages.poll: migrate to finalAttrs --- pkgs/development/ocaml-modules/poll/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/ocaml-modules/poll/default.nix b/pkgs/development/ocaml-modules/poll/default.nix index 0f0e616da1ba..0f17fc17c22b 100644 --- a/pkgs/development/ocaml-modules/poll/default.nix +++ b/pkgs/development/ocaml-modules/poll/default.nix @@ -8,14 +8,14 @@ ppx_optcomp, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "poll"; version = "0.3.1"; minimalOCamlVersion = "4.13"; src = fetchurl { - url = "https://github.com/anuragsoni/poll/releases/download/${version}/poll-${version}.tbz"; + url = "https://github.com/anuragsoni/poll/releases/download/${finalAttrs.version}/poll-${finalAttrs.version}.tbz"; hash = "sha256-IX6SivK/IMQaGgMgWiIsNgUSMHP6z1E/TSB0miaQ8pw="; }; @@ -37,8 +37,8 @@ buildDunePackage rec { meta = { description = "Portable OCaml interface to macOS/Linux/Windows native IO event notification mechanisms"; homepage = "https://github.com/anuragsoni/poll"; - changelog = "https://github.com/anuragsoni/poll/blob/${version}/CHANGES.md"; + changelog = "https://github.com/anuragsoni/poll/blob/${finalAttrs.version}/CHANGES.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ sixstring982 ]; }; -} +}) From 8543c7c4650ca0aacc4ad4411e46906ee3823fae Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:46 -0600 Subject: [PATCH 49/49] ocamlPackages.spelll: migrate to finalAttrs --- pkgs/development/ocaml-modules/spelll/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/ocaml-modules/spelll/default.nix b/pkgs/development/ocaml-modules/spelll/default.nix index ec59977d333e..f68ac91ae474 100644 --- a/pkgs/development/ocaml-modules/spelll/default.nix +++ b/pkgs/development/ocaml-modules/spelll/default.nix @@ -6,7 +6,7 @@ stdlib-shims, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "spelll"; version = "0.4"; @@ -14,8 +14,8 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "c-cube"; - repo = pname; - rev = "v${version}"; + repo = "spelll"; + rev = "v${finalAttrs.version}"; hash = "sha256-nI8fdArYynR70PUJIgyogGBCe4gFhfVzuRdZzFGKqOc="; }; @@ -25,9 +25,9 @@ buildDunePackage rec { ]; meta = { - inherit (src.meta) homepage; + inherit (finalAttrs.src.meta) homepage; description = "Fuzzy string searching, using Levenshtein automaton"; license = lib.licenses.bsd2; maintainers = [ lib.maintainers.vbgl ]; }; -} +})