Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
38 lines
782 B
Nix
38 lines
782 B
Nix
{
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
lib,
|
|
nixosTests,
|
|
}:
|
|
buildGoModule rec {
|
|
pname = "litestream";
|
|
version = "0.3.13";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "benbjohnson";
|
|
repo = "litestream";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-p858gK+ICKDQ+/LUiBaxF/kfrZzQAXnYMZDFU8kNCJ4=";
|
|
};
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.Version=${version}"
|
|
];
|
|
|
|
vendorHash = "sha256-sYIY3Z3VrCqbjEbQtEY7q6Jljg8jMoa2qWEB/IkDjzM=";
|
|
|
|
patches = [ ./fix-cve-2024-41254.patch ];
|
|
|
|
passthru.tests = { inherit (nixosTests) litestream; };
|
|
|
|
meta = with lib; {
|
|
description = "Streaming replication for SQLite";
|
|
mainProgram = "litestream";
|
|
license = licenses.asl20;
|
|
homepage = "https://litestream.io/";
|
|
maintainers = with maintainers; [ fbrs ];
|
|
};
|
|
}
|