litefs: init at 0.2.0

This commit is contained in:
Mostly Void 2022-09-22 14:14:23 +05:30
parent 0174086412
commit 733ce794b6
No known key found for this signature in database
GPG key ID: E2B7342D0CAA82C2
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

@ -16647,6 +16647,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 { };