redka: init at 0.3.0

This commit is contained in:
Nikolay Korotkiy 2024-05-02 00:46:11 +04:00
parent 7917d334bb
commit 09ff0abeee
No known key found for this signature in database
GPG Key ID: D1DE6D7F693663A5

View File

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