diff --git a/pkgs/development/ocaml-modules/redis/default.nix b/pkgs/development/ocaml-modules/redis/default.nix index e54e5b3e3cfb..86ee73743184 100644 --- a/pkgs/development/ocaml-modules/redis/default.nix +++ b/pkgs/development/ocaml-modules/redis/default.nix @@ -7,14 +7,14 @@ uuidm, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "redis"; version = "0.8"; minimalOCamlVersion = "4.03"; src = fetchurl { - url = "https://github.com/0xffea/ocaml-redis/releases/download/v${version}/redis-${version}.tbz"; + url = "https://github.com/0xffea/ocaml-redis/releases/download/v${finalAttrs.version}/redis-${finalAttrs.version}.tbz"; hash = "sha256-Cli30Elur3tL/0bWK6PBBy229TK4jsQnN/0oVQux01I="; }; @@ -31,4 +31,4 @@ buildDunePackage rec { license = lib.licenses.bsd3; homepage = "https://github.com/0xffea/ocaml-redis"; }; -} +})