redis: use finalAttrs

This commit is contained in:
Aaron Jheng 2023-09-24 16:38:44 +08:00 committed by Jörg Thalheim
parent 32663cfc65
commit 9f69adde0d

View file

@ -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";
};
}
})