diff --git a/pkgs/development/ocaml-modules/decoders-yojson/default.nix b/pkgs/development/ocaml-modules/decoders-yojson/default.nix index 8da0e05a69ff..0a6bd35ce951 100644 --- a/pkgs/development/ocaml-modules/decoders-yojson/default.nix +++ b/pkgs/development/ocaml-modules/decoders-yojson/default.nix @@ -7,7 +7,7 @@ ounit2, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "decoders-yojson"; # sub-package built separately from the same source @@ -29,8 +29,8 @@ buildDunePackage rec { meta = { description = "Yojson 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 ]; }; -} +})