about summary refs log tree commit diff
path: root/third_party/litestream/default.nix
blob: 20b094ee84ba80f8d3906823c1cb53aaf8367e8d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 ];
  };
}