From 40dd883339b8f065ed02c7c6167631d984df8fd9 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Thu, 22 Jan 2026 12:09:25 -0600 Subject: [PATCH] ocamlPackages.scfg: migrate to finalAttrs --- pkgs/development/ocaml-modules/scfg/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/ocaml-modules/scfg/default.nix b/pkgs/development/ocaml-modules/scfg/default.nix index aa1d39c64fd3..060c367cf0ef 100644 --- a/pkgs/development/ocaml-modules/scfg/default.nix +++ b/pkgs/development/ocaml-modules/scfg/default.nix @@ -13,13 +13,13 @@ writableTmpDirAsHomeHook, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "scfg"; version = "0.5"; # upstream git repo is misconfigured and cannot be cloned src = fetchzip { - url = "https://git.zapashcanon.fr/zapashcanon/scfg/archive/${version}.tar.gz"; + url = "https://git.zapashcanon.fr/zapashcanon/scfg/archive/${finalAttrs.version}.tar.gz"; hash = "sha256-XyNVmI0W0B1JqR+uuojpHe9L5KKLhyoH8vN8+9i7Xcg="; }; @@ -50,8 +50,8 @@ buildDunePackage rec { description = "Library to work with the scfg configuration file"; homepage = "https://ocaml.org/p/scfg/"; downloadPage = "https://git.zapashcanon.fr/zapashcanon/scfg"; - changelog = "https://git.zapashcanon.fr/zapashcanon/scfg/src/tag/${version}/CHANGES.md"; + changelog = "https://git.zapashcanon.fr/zapashcanon/scfg/src/tag/${finalAttrs.version}/CHANGES.md"; license = lib.licenses.isc; maintainers = [ lib.maintainers.ethancedwards8 ]; }; -} +})