feat(3p/litestream): Add derivation for litestream
This is a simple Go module build for https://litestream.io/ If this ends up being useful, we should upstream this to nixpkgs. Change-Id: I3beb64c9adb3b57fcef4e1dfb27f293a15f90a76 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3085 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi>
This commit is contained in:
parent
814feed0ce
commit
7fec80cb58
1 changed files with 23 additions and 0 deletions
23
third_party/litestream/default.nix
vendored
Normal file
23
third_party/litestream/default.nix
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
# TODO(tazjin): Upstream this derivation if litestream is good.
|
||||
{ pkgs, lib, ... }:
|
||||
|
||||
let inherit (pkgs) buildGoModule fetchFromGitHub;
|
||||
in pkgs.buildGoModule rec {
|
||||
pname = "litestream";
|
||||
version = "0.3.4";
|
||||
vendorSha256 = "1dcb5f06cq484i9m9pi5l4banygh3s4bz5964hy7ypmm1z2pcmrv";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "benbjohnson";
|
||||
repo = "litestream";
|
||||
rev = "v${version}";
|
||||
sha256 = "1ivyxgmbysir9qsbsz6nksjqzw6ba0zrymacsw12ab9bvbldjxv7";
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Streaming S3 replication for SQLite";
|
||||
homepage = "https://litestream.io/";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = [ lib.maintainers.tazjin ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue