Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / tools / database / litefs / default.nix
blobc12cde6af9185a0680438a3018537c7014c1dda0
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "litefs";
8   version = "0.5.4";
10   src = fetchFromGitHub {
11     owner = "superfly";
12     repo = pname;
13     rev = "v${version}";
14     sha256 = "sha256-gTXIQVnNyVn2UqigozvEPaPm3XoqHd6E0RZnZS4bP3g=";
15   };
17   vendorHash = "sha256-4e1tAAXM2EYuqe1AbN1wng/bq1BP7MSOV6woeKjc3x4=";
19   subPackages = [ "cmd/litefs" ];
21   # following https://github.com/superfly/litefs/blob/main/Dockerfile
22   ldflags = [
23     "-s"
24     "-w"
25     "-X main.Version=${version}"
26     "-extldflags=-static"
27   ];
29   tags = [
30     "osusergo"
31     "netgo"
32     "sqlite_omit_load_extension"
33   ];
35   doCheck = false; # fails
37   meta = with lib; {
38     description = "FUSE-based file system for replicating SQLite databases across a cluster of machines";
39     homepage = "https://github.com/superfly/litefs";
40     license = licenses.asl20;
41     maintainers = with maintainers; [ dit7ya ];
42   };