From f65e7c62d7e65f9aa4a22f8a1ca107fba22fdbcc Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Thu, 22 Jan 2026 10:13:50 -0600 Subject: [PATCH] ocamlPackages.hidapi: migrate to finalAttrs --- pkgs/development/ocaml-modules/hidapi/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/hidapi/default.nix b/pkgs/development/ocaml-modules/hidapi/default.nix index 38e6d503b866..206ecaa86239 100644 --- a/pkgs/development/ocaml-modules/hidapi/default.nix +++ b/pkgs/development/ocaml-modules/hidapi/default.nix @@ -8,7 +8,7 @@ bigstring, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "hidapi"; version = "1.2.1"; @@ -17,7 +17,7 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "vbmithr"; repo = "ocaml-hidapi"; - rev = version; + rev = finalAttrs.version; hash = "sha256-upygm5G46C65lxaiI6kBOzLrWxzW9qWb6efN/t58SRg="; }; @@ -39,4 +39,4 @@ buildDunePackage rec { maintainers = [ ]; mainProgram = "ocaml-hid-enumerate"; }; -} +})