depot/third_party/nixpkgs/pkgs/by-name/re/redka/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

30 lines
698 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "redka";
version = "0.5.1";
src = fetchFromGitHub {
owner = "nalgeon";
repo = "redka";
rev = "v${version}";
hash = "sha256-URPuAltTh95hXePx5zW/bdP2woAoEsKRpf4DHBwzdw4=";
};
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;
};
}