depot/third_party/nixpkgs/pkgs/by-name/re/redka/package.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

31 lines
774 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "redka";
version = "0.5.2";
src = fetchFromGitHub {
owner = "nalgeon";
repo = "redka";
rev = "v${version}";
hash = "sha256-KpfXnhwz3uUdG89XdNqm1WyKwYhA5ImDg4DzzefKMz8=";
};
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";
changelog = "https://github.com/nalgeon/redka/releases/tag/${src.rev}";
maintainers = with lib.maintainers; [ sikmir ];
license = lib.licenses.bsd3;
};
}