2021-06-28 23:13:55 +00:00
|
|
|
{ buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
2024-09-19 14:19:46 +00:00
|
|
|
, nixosTests
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "litestream";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.3.13";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "benbjohnson";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
sha256 = "sha256-p858gK+ICKDQ+/LUiBaxF/kfrZzQAXnYMZDFU8kNCJ4=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X main.Version=${version}"
|
|
|
|
];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-sYIY3Z3VrCqbjEbQtEY7q6Jljg8jMoa2qWEB/IkDjzM=";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) litestream; };
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Streaming replication for SQLite";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "litestream";
|
2021-06-28 23:13:55 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
homepage = "https://litestream.io/";
|
|
|
|
maintainers = with maintainers; [ fbrs ];
|
2024-09-19 14:19:46 +00:00
|
|
|
knownVulnerabilities = [ "CVE-2024-41254" ];
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
}
|