diff options
author | Aaron Jheng <wentworth@outlook.com> | 2023-09-24 16:38:44 +0800 |
---|---|---|
committer | Jörg Thalheim <Mic92@users.noreply.github.com> | 2023-09-24 13:03:34 +0200 |
commit | 9f69adde0dcd1c707c7cfc1ff326ae5c058bbe68 (patch) | |
tree | 70fa00e164de035a3972afd8a372b025e26b4f7b /pkgs | |
parent | 32663cfc6550cde766b490857bbc37b89be10ce8 (diff) |
redis: use finalAttrs
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/servers/nosql/redis/default.nix | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/servers/nosql/redis/default.nix b/pkgs/servers/nosql/redis/default.nix index 201e87aab2eb5..25d8896945045 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"; }; -} +}) |