From d1f41b214171146bd62eefd81ef439ea1aaa7b9d Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Thu, 22 Jan 2026 12:08:29 -0600 Subject: [PATCH] ocamlPackages.ocaml-r: migrate to finalAttrs --- pkgs/development/ocaml-modules/ocaml-r/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/ocaml-modules/ocaml-r/default.nix b/pkgs/development/ocaml-modules/ocaml-r/default.nix index a2e0bca7092f..9dc2aa7505be 100644 --- a/pkgs/development/ocaml-modules/ocaml-r/default.nix +++ b/pkgs/development/ocaml-modules/ocaml-r/default.nix @@ -10,7 +10,7 @@ alcotest, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "ocaml-r"; version = "0.6.0"; @@ -20,8 +20,8 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "pveber"; - repo = pname; - rev = "v${version}"; + repo = "ocaml-r"; + rev = "v${finalAttrs.version}"; sha256 = "sha256-jPyVMxjeh9+xu0dD1gelAxcOhxouKczyvzVoKZ5oSrs="; }; @@ -48,9 +48,9 @@ buildDunePackage rec { meta = { description = "OCaml bindings for the R interpreter"; - inherit (src.meta) homepage; + inherit (finalAttrs.src.meta) homepage; license = lib.licenses.gpl3; maintainers = [ lib.maintainers.bcdarwin ]; }; -} +})