tuicam: init at 0.0.2 (#377825)
[NixPkgs.git] / pkgs / by-name / rq / rqlite / package.nix
blobcf13645813878c657f26848c351c6d8ade5467df
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5 }:
7 buildGoModule rec {
8   pname = "rqlite";
9   version = "8.36.11";
11   src = fetchFromGitHub {
12     owner = "rqlite";
13     repo = pname;
14     rev = "v${version}";
15     sha256 = "sha256-LL2nfRFrfDtttDexLUarFb7AyoLTFf3WeoWm4cqmBtM=";
16   };
18   vendorHash = "sha256-BUZaRSDbzHVzP3A0Q4LnKfzp0lzEJ3x7Vag+7sn4MSM=";
20   subPackages = [
21     "cmd/rqlite"
22     "cmd/rqlited"
23     "cmd/rqbench"
24   ];
26   # Leaving other flags from https://github.com/rqlite/rqlite/blob/master/package.sh
27   # since automatically retriving those is nontrivial and inessential
28   ldflags = [
29     "-s"
30     "-w"
31     "-X github.com/rqlite/rqlite/cmd.Version=${src.rev}"
32   ];
34   # Tests are in a different subPackage which fails trying to access the network
35   doCheck = false;
37   meta = with lib; {
38     description = "Lightweight, distributed relational database built on SQLite";
39     homepage = "https://github.com/rqlite/rqlite";
40     license = licenses.mit;
41     maintainers = with maintainers; [ dit7ya ];
42   };