2024-05-01 21:46:11 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "redka";
|
2024-06-28 21:25:47 +01:00
|
|
|
version = "0.5.2";
|
2024-05-01 21:46:11 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nalgeon";
|
|
|
|
repo = "redka";
|
|
|
|
rev = "v${version}";
|
2024-06-28 21:25:47 +01:00
|
|
|
hash = "sha256-KpfXnhwz3uUdG89XdNqm1WyKwYhA5ImDg4DzzefKMz8=";
|
2024-05-01 21:46:11 +01: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";
|
|
|
|
maintainers = with lib.maintainers; [ sikmir ];
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|