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"; }; -} +})