diff --git a/pkgs/development/ocaml-modules/minttea/default.nix b/pkgs/development/ocaml-modules/minttea/default.nix index 3685f2d459b4..0d6bf937993d 100644 --- a/pkgs/development/ocaml-modules/minttea/default.nix +++ b/pkgs/development/ocaml-modules/minttea/default.nix @@ -6,14 +6,14 @@ tty, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "minttea"; version = "0.0.3"; minimalOCamlVersion = "5.1"; src = fetchurl { - url = "https://github.com/leostera/minttea/releases/download/${version}/minttea-${version}.tbz"; + url = "https://github.com/leostera/minttea/releases/download/${finalAttrs.version}/minttea-${finalAttrs.version}.tbz"; hash = "sha256-WEaJVCCvsmKcF8+yzovljt8dGWaIv4UmAr74jq6Vo9M="; }; @@ -25,8 +25,8 @@ buildDunePackage rec { meta = { description = "Fun, functional, and stateful way to build terminal apps in OCaml heavily inspired by Go's BubbleTea"; homepage = "https://github.com/leostera/minttea"; - changelog = "https://github.com/leostera/minttea/blob/${version}/CHANGES.md"; + changelog = "https://github.com/leostera/minttea/blob/${finalAttrs.version}/CHANGES.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ sixstring982 ]; }; -} +})