mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 11:34:13 +00:00
redis: use finalAttrs
This commit is contained in:
parent
32663cfc65
commit
9f69adde0d
@ -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
|
, tcl, which, ps, getconf
|
||||||
, withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd, systemd
|
, withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd, systemd
|
||||||
# dependency ordering is broken at the moment when building with openssl
|
# dependency ordering is broken at the moment when building with openssl
|
||||||
@ -10,12 +10,12 @@
|
|||||||
, useSystemJemalloc ? true
|
, useSystemJemalloc ? true
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "redis";
|
pname = "redis";
|
||||||
version = "7.2.1";
|
version = "7.2.1";
|
||||||
|
|
||||||
src = fetchurl {
|
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=";
|
hash = "sha256-XHbZkKGxxflJvNHu2Q0Mik9wNpvb3LQCiMVh3fiJZ6Q=";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -84,8 +84,8 @@ stdenv.mkDerivation rec {
|
|||||||
description = "An open source, advanced key-value store";
|
description = "An open source, advanced key-value store";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
platforms = platforms.all;
|
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 ];
|
maintainers = with maintainers; [ berdario globin marsam ];
|
||||||
mainProgram = "redis-cli";
|
mainProgram = "redis-cli";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user