From ddbacd27ed3387438cc2411776b1a22b5ca8a227 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Thu, 22 Jan 2026 10:14:14 -0600 Subject: [PATCH] ocamlPackages.linenoise: migrate to finalAttrs --- pkgs/development/ocaml-modules/linenoise/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/ocaml-modules/linenoise/default.nix b/pkgs/development/ocaml-modules/linenoise/default.nix index 05596866b070..2ee7401e59af 100644 --- a/pkgs/development/ocaml-modules/linenoise/default.nix +++ b/pkgs/development/ocaml-modules/linenoise/default.nix @@ -5,7 +5,7 @@ result, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "linenoise"; version = "1.5.1"; @@ -13,8 +13,8 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "fxfactorial"; - repo = "ocaml-${pname}"; - rev = "v${version}"; + repo = "ocaml-linenoise"; + rev = "v${finalAttrs.version}"; sha256 = "sha256-yWBWMbk1anXaF4hIakTOcRZFCYmxI0xG3bHFFOAyEDA="; }; @@ -24,6 +24,6 @@ buildDunePackage rec { description = "OCaml bindings to linenoise"; license = lib.licenses.bsd3; maintainers = [ lib.maintainers.vbgl ]; - inherit (src.meta) homepage; + inherit (finalAttrs.src.meta) homepage; }; -} +})