nixpkgs/pkgs/by-name/re/redka/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
698 B
Nix
Raw Normal View History

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;
};
}