diff options
author | Nikolay Korotkiy <sikmir@disroot.org> | 2024-05-02 00:46:11 +0400 |
---|---|---|
committer | Nikolay Korotkiy <sikmir@disroot.org> | 2024-05-02 00:46:11 +0400 |
commit | 09ff0abeee3d3d9e343d7b81e9b8239b8609734b (patch) | |
tree | effe240e4f572115216033081b4ea77041451812 /pkgs/by-name/re | |
parent | 7917d334bb42d5e76245d0202a84c26427aa72fe (diff) |
redka: init at 0.3.0
Diffstat (limited to 'pkgs/by-name/re')
-rw-r--r-- | pkgs/by-name/re/redka/package.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/by-name/re/redka/package.nix b/pkgs/by-name/re/redka/package.nix new file mode 100644 index 0000000000000..ebe81491f86bb --- /dev/null +++ b/pkgs/by-name/re/redka/package.nix @@ -0,0 +1,30 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "redka"; + version = "0.3.0"; + + src = fetchFromGitHub { + owner = "nalgeon"; + repo = "redka"; + rev = "v${version}"; + hash = "sha256-nE5JrKsvQeU/wDNl5HYFiK9ezyGpUqX4d4SaZhfURxo="; + }; + + 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; + }; +} |