2023-02-22 10:55:15 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "rqlite";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "8.19.0";
|
2023-02-22 10:55:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rqlite";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
sha256 = "sha256-kTFuvdWOHLLfIFC4HeOX8q52ylXhVQ0TMN+8LUKXvuA=";
|
2023-02-22 10:55:15 +00:00
|
|
|
};
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
vendorHash = "sha256-FzxY6CTcFwSmW9LEKzPRtCsKxsGedwU9G3A3efYG9zk=";
|
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; {
|
|
|
|
description = "The lightweight, distributed relational database built on SQLite";
|
|
|
|
homepage = "https://github.com/rqlite/rqlite";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dit7ya ];
|
|
|
|
};
|
|
|
|
}
|