blob: fda4439808e2f121fed45755f1c5849faf304538 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "redka";
version = "0.5.2";
src = fetchFromGitHub {
owner = "nalgeon";
repo = "redka";
rev = "v${version}";
hash = "sha256-KpfXnhwz3uUdG89XdNqm1WyKwYhA5ImDg4DzzefKMz8=";
};
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;
};
}
|