keydb: move to finalAttrs, cleanup
explicitly use lib where needed
This commit is contained in:
parent
cfe7930b94
commit
722a131602
1 changed files with 8 additions and 8 deletions
|
@ -18,14 +18,14 @@
|
||||||
nixosTests,
|
nixosTests,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "keydb";
|
pname = "keydb";
|
||||||
version = "6.3.4";
|
version = "6.3.4";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "snapchat";
|
owner = "snapchat";
|
||||||
repo = "keydb";
|
repo = "keydb";
|
||||||
rev = "v${version}";
|
rev = "v${finalAttrs.version}";
|
||||||
hash = "sha256-j6qgK6P3Fv+b6k9jwKQ5zW7XLkKbXXcmHKBCQYvwEIU=";
|
hash = "sha256-j6qgK6P3Fv+b6k9jwKQ5zW7XLkKbXXcmHKBCQYvwEIU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -94,13 +94,13 @@ stdenv.mkDerivation rec {
|
||||||
passthru.tests.redis = nixosTests.redis;
|
passthru.tests.redis = nixosTests.redis;
|
||||||
passthru.serverBin = "keydb-server";
|
passthru.serverBin = "keydb-server";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
homepage = "https://keydb.dev";
|
homepage = "https://keydb.dev";
|
||||||
description = "A Multithreaded Fork of Redis";
|
description = "A Multithreaded Fork of Redis";
|
||||||
license = licenses.bsd3;
|
license = lib.licenses.bsd3;
|
||||||
platforms = platforms.all;
|
platforms = lib.platforms.all;
|
||||||
changelog = "https://github.com/Snapchat/KeyDB/raw/v${version}/00-RELEASENOTES";
|
changelog = "https://github.com/Snapchat/KeyDB/raw/v${finalAttrs.version}/00-RELEASENOTES";
|
||||||
maintainers = teams.helsinki-systems.members;
|
maintainers = lib.teams.helsinki-systems.members;
|
||||||
mainProgram = "keydb-cli";
|
mainProgram = "keydb-cli";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue