2023-02-22 10:55:15 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "rqlite";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "8.24.10";
|
2023-02-22 10:55:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rqlite";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
sha256 = "sha256-cLqCX9ulzsmNFkyaExYuFNOD78TMiNdKEgoJV89Ipxw=";
|
2023-02-22 10:55:15 +00:00
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
vendorHash = "sha256-9UFDpdWK/kQuko3AaWXBiDCa+Wd1hNmPk5rDM9ugoTw=";
|
2023-02-22 10:55:15 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/rqlite" "cmd/rqlited" "cmd/rqbench" ];
|
|
|
|
|
|
|
|
# Leaving other flags from https://github.com/rqlite/rqlite/blob/master/package.sh
|
|
|
|
# since automatically retriving those is nontrivial and inessential
|
|
|
|
ldflags = [
|
|
|
|
"-s" "-w"
|
|
|
|
"-X github.com/rqlite/rqlite/cmd.Version=${src.rev}"
|
|
|
|
];
|
|
|
|
|
|
|
|
# Tests are in a different subPackage which fails trying to access the network
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Lightweight, distributed relational database built on SQLite";
|
2023-02-22 10:55:15 +00:00
|
|
|
homepage = "https://github.com/rqlite/rqlite";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dit7ya ];
|
|
|
|
};
|
|
|
|
}
|