diff --git a/pkgs/development/ocaml-modules/rio/default.nix b/pkgs/development/ocaml-modules/rio/default.nix index e705007d570e..fa0dc3388311 100644 --- a/pkgs/development/ocaml-modules/rio/default.nix +++ b/pkgs/development/ocaml-modules/rio/default.nix @@ -5,14 +5,14 @@ cstruct, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "rio"; version = "0.0.8"; minimalOCamlVersion = "5.1"; src = fetchurl { - url = "https://github.com/leostera/riot/releases/download/${version}/riot-${version}.tbz"; + url = "https://github.com/leostera/riot/releases/download/${finalAttrs.version}/riot-${finalAttrs.version}.tbz"; hash = "sha256-SsiDz53b9bMIT9Q3IwDdB3WKy98WSd9fiieU41qZpeE="; }; @@ -23,8 +23,8 @@ buildDunePackage rec { meta = { description = "Ergonomic, composable, efficient read/write streams"; homepage = "https://github.com/leostera/riot"; - changelog = "https://github.com/leostera/riot/blob/${version}/CHANGES.md"; + changelog = "https://github.com/leostera/riot/blob/${finalAttrs.version}/CHANGES.md"; license = lib.licenses.mit; maintainers = [ ]; }; -} +})