rqlite: modernize

This commit is contained in:
Nikolay Korotkiy 2025-06-08 14:12:58 +04:00
parent 2cf33d67ff
commit 4ed39bce58
No known key found for this signature in database
GPG key ID: D1DE6D7F693663A5

View file

@ -4,15 +4,15 @@
fetchFromGitHub,
}:
buildGoModule rec {
buildGoModule (finalAttrs: {
pname = "rqlite";
version = "8.37.4";
src = fetchFromGitHub {
owner = "rqlite";
repo = "rqlite";
rev = "v${version}";
sha256 = "sha256-PMoQg3QjG0hyWKWIf5JIj7X9XbjpHpy1Hwo9DMsutW0=";
tag = "v${finalAttrs.version}";
hash = "sha256-PMoQg3QjG0hyWKWIf5JIj7X9XbjpHpy1Hwo9DMsutW0=";
};
vendorHash = "sha256-3ZoMpmWOf3wIK0R1mY2GRzPA+Xb6YIdk+hLfzsC84/U=";
@ -28,16 +28,17 @@ buildGoModule rec {
ldflags = [
"-s"
"-w"
"-X github.com/rqlite/rqlite/cmd.Version=${src.rev}"
"-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 = with lib; {
meta = {
description = "Lightweight, distributed relational database built on SQLite";
homepage = "https://github.com/rqlite/rqlite";
license = licenses.mit;
maintainers = with maintainers; [ dit7ya ];
changelog = "https://github.com/rqlite/rqlite/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dit7ya ];
};
}
})