Merge pull request #192404 from dit7ya/litefs

litefs: init at 0.2.0
This commit is contained in:
Mario Rodas 2022-09-24 11:48:51 -05:00 committed by GitHub
commit f2799a698c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,43 @@
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "litefs";
version = "0.2.0";
src = fetchFromGitHub {
owner = "superfly";
repo = pname;
rev = "v${version}";
sha256 = "sha256-Gh1GcIsRNfAwQ2HJq82IlyUHPyaDpA3CpBe4glBbU/I=";
};
vendorSha256 = "sha256-dXCyBY4k9Gxsy/7UwkWFTxihZnFkZGrZKgw9pHD8jco=";
subPackages = [ "cmd/litefs" ];
# following https://github.com/superfly/litefs/blob/main/Dockerfile
ldflags = [
"-s"
"-w"
"-X main.Version=${version}"
"-extldflags=-static"
];
tags = [
"osusergo"
"netgo"
"sqlite_omit_load_extension"
];
doCheck = false; # fails
meta = with lib; {
description = "FUSE-based file system for replicating SQLite databases across a cluster of machines";
homepage = "https://github.com/superfly/litefs";
license = licenses.asl20;
maintainers = with maintainers; [ dit7ya ];
};
}

View File

@ -16869,6 +16869,8 @@ with pkgs;
litecli = callPackage ../development/tools/database/litecli {};
litefs = callPackage ../development/tools/database/litefs {};
litestream = callPackage ../development/tools/database/litestream {};
lsof = callPackage ../development/tools/misc/lsof { };