2024-05-15 15:35:15 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "redka";
|
2024-07-01 15:47:52 +00:00
|
|
|
version = "0.5.2";
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nalgeon";
|
|
|
|
repo = "redka";
|
|
|
|
rev = "v${version}";
|
2024-07-01 15:47:52 +00:00
|
|
|
hash = "sha256-KpfXnhwz3uUdG89XdNqm1WyKwYhA5ImDg4DzzefKMz8=";
|
2024-05-15 15:35:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
vendorHash = "sha256-aX0X6TWVEouo884LunCt+UzLyvDHgmvuxdV0wh0r7Ro=";
|
|
|
|
|
|
|
|
subPackages = [ "cmd/redka" "cmd/cli" ];
|
|
|
|
|
|
|
|
ldflags = [ "-X main.version=v${version}" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/{cli,redka-cli}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Redis re-implemented with SQLite";
|
|
|
|
homepage = "https://github.com/nalgeon/redka";
|
2024-07-27 06:49:29 +00:00
|
|
|
changelog = "https://github.com/nalgeon/redka/releases/tag/${src.rev}";
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = with lib.maintainers; [ sikmir ];
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|