mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-06 04:27:27 +03:00
redka: init at 0.3.0
This commit is contained in:
parent
7917d334bb
commit
09ff0abeee
30
pkgs/by-name/re/redka/package.nix
Normal file
30
pkgs/by-name/re/redka/package.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user