diff --git a/pkgs/development/ocaml-modules/ocaml-result/default.nix b/pkgs/development/ocaml-modules/ocaml-result/default.nix index 710f1ede3e78..a59f1b0e3b8e 100644 --- a/pkgs/development/ocaml-modules/ocaml-result/default.nix +++ b/pkgs/development/ocaml-modules/ocaml-result/default.nix @@ -4,12 +4,12 @@ fetchurl, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "result"; version = "1.5"; src = fetchurl { - url = "https://github.com/janestreet/result/releases/download/${version}/result-${version}.tbz"; + url = "https://github.com/janestreet/result/releases/download/${finalAttrs.version}/result-${finalAttrs.version}.tbz"; sha256 = "0cpfp35fdwnv3p30a06wd0py3805qxmq3jmcynjc3x2qhlimwfkw"; }; @@ -23,4 +23,4 @@ buildDunePackage rec { ''; license = lib.licenses.bsd3; }; -} +})