diff --git a/pkgs/development/ocaml-modules/prelude/default.nix b/pkgs/development/ocaml-modules/prelude/default.nix index 06424b840d1a..50f398958b26 100644 --- a/pkgs/development/ocaml-modules/prelude/default.nix +++ b/pkgs/development/ocaml-modules/prelude/default.nix @@ -4,7 +4,7 @@ fetchzip, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "prelude"; version = "0.5"; @@ -12,7 +12,7 @@ buildDunePackage rec { # upstream git repo is misconfigured and cannot be cloned src = fetchzip { - url = "https://git.zapashcanon.fr/zapashcanon/prelude/archive/${version}.tar.gz"; + url = "https://git.zapashcanon.fr/zapashcanon/prelude/archive/${finalAttrs.version}.tar.gz"; hash = "sha256-lti+q1U/eEasAXo0O5YEu4iw7947V9bdvSHA0IEMS8M="; }; @@ -22,8 +22,8 @@ buildDunePackage rec { description = "Library to enforce good stdlib practices"; homepage = "https://ocaml.org/p/prelude/"; downloadPage = "https://git.zapashcanon.fr/zapashcanon/prelude"; - changelog = "https://git.zapashcanon.fr/zapashcanon/prelude/src/tag/${version}/CHANGES.md"; + changelog = "https://git.zapashcanon.fr/zapashcanon/prelude/src/tag/${finalAttrs.version}/CHANGES.md"; license = lib.licenses.agpl3Plus; maintainers = [ lib.maintainers.ethancedwards8 ]; }; -} +})