diff --git a/pkgs/development/ocaml-modules/decoders-jsonaf/default.nix b/pkgs/development/ocaml-modules/decoders-jsonaf/default.nix index d6e01a3273c5..a7dacffc8464 100644 --- a/pkgs/development/ocaml-modules/decoders-jsonaf/default.nix +++ b/pkgs/development/ocaml-modules/decoders-jsonaf/default.nix @@ -7,7 +7,7 @@ ounit2, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "decoders-jsonaf"; # sub-package built separately from the same source @@ -29,8 +29,8 @@ buildDunePackage rec { meta = { description = "Jsonaf backend for decoders"; homepage = "https://github.com/mattjbray/ocaml-decoders"; - changelog = "https://github.com/mattjbray/ocaml-decoders/blob/${version}/CHANGES.md"; + changelog = "https://github.com/mattjbray/ocaml-decoders/blob/${finalAttrs.version}/CHANGES.md"; license = lib.licenses.isc; maintainers = with lib.maintainers; [ infinidoge ]; }; -} +})