bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
37 lines
991 B
Nix
37 lines
991 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "rqlite";
|
|
version = "8.24.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rqlite";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-cLqCX9ulzsmNFkyaExYuFNOD78TMiNdKEgoJV89Ipxw=";
|
|
};
|
|
|
|
vendorHash = "sha256-9UFDpdWK/kQuko3AaWXBiDCa+Wd1hNmPk5rDM9ugoTw=";
|
|
|
|
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 = "Lightweight, distributed relational database built on SQLite";
|
|
homepage = "https://github.com/rqlite/rqlite";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dit7ya ];
|
|
};
|
|
}
|