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
45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "rqlite";
|
|
version = "9.1.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rqlite";
|
|
repo = "rqlite";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-7QAJofhssL2N5szD4j9rcv830sEnMyrS2Mg4s4G33HI=";
|
|
};
|
|
|
|
vendorHash = "sha256-zGAC7yDccfhZ+2WeiN9DAsOFTa3j4ymPxeFNwam7+Ts=";
|
|
|
|
subPackages = [
|
|
"cmd/rqlite"
|
|
"cmd/rqlited"
|
|
"cmd/rqbench"
|
|
];
|
|
|
|
# Leaving other flags from https://github.com/rqlite/rqlite/blob/master/package.sh
|
|
# since automatically retrieving those is nontrivial and inessential
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/rqlite/rqlite/cmd.Version=${finalAttrs.version}"
|
|
];
|
|
|
|
# Tests are in a different subPackage which fails trying to access the network
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Lightweight, distributed relational database built on SQLite";
|
|
homepage = "https://github.com/rqlite/rqlite";
|
|
changelog = "https://github.com/rqlite/rqlite/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ dit7ya ];
|
|
};
|
|
})
|