5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
30 lines
698 B
Nix
30 lines
698 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "redka";
|
|
version = "0.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nalgeon";
|
|
repo = "redka";
|
|
rev = "v${version}";
|
|
hash = "sha256-Dm+QMmCYoYJWv+Crot0bwcSPHuUYQzhRgTO65jRjLLE=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|