diff --git a/pkgs/servers/nosql/redis/default.nix b/pkgs/servers/nosql/redis/default.nix index 201e87aab2e..25d88969450 100644 --- a/pkgs/servers/nosql/redis/default.nix +++ b/pkgs/servers/nosql/redis/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, fetchpatch, lua, jemalloc, pkg-config, nixosTests +{ lib, stdenv, fetchurl, lua, jemalloc, pkg-config, nixosTests , tcl, which, ps, getconf , withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd, systemd # dependency ordering is broken at the moment when building with openssl @@ -10,12 +10,12 @@ , useSystemJemalloc ? true }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "redis"; version = "7.2.1"; src = fetchurl { - url = "https://download.redis.io/releases/${pname}-${version}.tar.gz"; + url = "https://download.redis.io/releases/redis-${finalAttrs.version}.tar.gz"; hash = "sha256-XHbZkKGxxflJvNHu2Q0Mik9wNpvb3LQCiMVh3fiJZ6Q="; }; @@ -84,8 +84,8 @@ stdenv.mkDerivation rec { description = "An open source, advanced key-value store"; license = licenses.bsd3; platforms = platforms.all; - changelog = "https://github.com/redis/redis/raw/${version}/00-RELEASENOTES"; + changelog = "https://github.com/redis/redis/raw/${finalAttrs.version}/00-RELEASENOTES"; maintainers = with maintainers; [ berdario globin marsam ]; mainProgram = "redis-cli"; }; -} +})