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