diff --git a/pkgs/development/ocaml-modules/colors/default.nix b/pkgs/development/ocaml-modules/colors/default.nix index 765af72b9d2d..c368c6ea3af3 100644 --- a/pkgs/development/ocaml-modules/colors/default.nix +++ b/pkgs/development/ocaml-modules/colors/default.nix @@ -6,14 +6,14 @@ mdx, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "colors"; version = "0.0.1"; minimalOCamlVersion = "4.13"; src = fetchurl { - url = "https://github.com/leostera/colors/releases/download/${version}/colors-${version}.tbz"; + url = "https://github.com/leostera/colors/releases/download/${finalAttrs.version}/colors-${finalAttrs.version}.tbz"; hash = "sha256-fY1j9FODVnifwsI8qkKm0QSmssgWqYFXJ7y8o7/KmEY="; }; @@ -30,8 +30,8 @@ buildDunePackage rec { meta = { description = "Pure OCaml library for manipulating colors across color spaces"; homepage = "https://github.com/leostera/colors"; - changelog = "https://github.com/leostera/colors/blob/${version}/CHANGES.md"; + changelog = "https://github.com/leostera/colors/blob/${finalAttrs.version}/CHANGES.md"; license = lib.licenses.mit; maintainers = [ ]; }; -} +})