base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / li / litefs / package.nix
blobe3dbdd780cd87c7594ca18f18ef92c07f1955fcf
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "litefs";
8   version = "0.5.11";
10   src = fetchFromGitHub {
11     owner = "superfly";
12     repo = pname;
13     rev = "v${version}";
14     sha256 = "sha256-I12bKImZkvAMyfwb6r/NxE+BcUk+SalN+cIDXP0q4xA=";
15   };
17   vendorHash = "sha256-FcYPe4arb+jbxj4Tl6bRRAnkEvw0rkECIo8/zC79lOA=";
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     mainProgram = "litefs";
43   };