1{ buildGoModule
2, fetchFromGitHub
3, lib
4}:
5buildGoModule rec {
6 pname = "litestream";
7 version = "0.3.13";
8
9 src = fetchFromGitHub {
10 owner = "benbjohnson";
11 repo = pname;
12 rev = "v${version}";
13 sha256 = "sha256-p858gK+ICKDQ+/LUiBaxF/kfrZzQAXnYMZDFU8kNCJ4=";
14 };
15
16 ldflags = [
17 "-s"
18 "-w"
19 "-X main.Version=${version}"
20 ];
21
22 vendorHash = "sha256-sYIY3Z3VrCqbjEbQtEY7q6Jljg8jMoa2qWEB/IkDjzM=";
23
24 meta = with lib; {
25 description = "Streaming replication for SQLite";
26 license = licenses.asl20;
27 homepage = "https://litestream.io/";
28 maintainers = with maintainers; [ fbrs ];
29 };
30}