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, fetchFromGitHub,
}: }:
buildGoModule rec { buildGoModule (finalAttrs: {
pname = "rqlite"; pname = "rqlite";
version = "8.37.4"; version = "8.37.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "rqlite"; owner = "rqlite";
repo = "rqlite"; repo = "rqlite";
rev = "v${version}"; tag = "v${finalAttrs.version}";
sha256 = "sha256-PMoQg3QjG0hyWKWIf5JIj7X9XbjpHpy1Hwo9DMsutW0="; hash = "sha256-PMoQg3QjG0hyWKWIf5JIj7X9XbjpHpy1Hwo9DMsutW0=";
}; };
vendorHash = "sha256-3ZoMpmWOf3wIK0R1mY2GRzPA+Xb6YIdk+hLfzsC84/U="; vendorHash = "sha256-3ZoMpmWOf3wIK0R1mY2GRzPA+Xb6YIdk+hLfzsC84/U=";
@ -28,16 +28,17 @@ buildGoModule rec {
ldflags = [ ldflags = [
"-s" "-s"
"-w" "-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 # Tests are in a different subPackage which fails trying to access the network
doCheck = false; doCheck = false;
meta = with lib; { meta = {
description = "Lightweight, distributed relational database built on SQLite"; description = "Lightweight, distributed relational database built on SQLite";
homepage = "https://github.com/rqlite/rqlite"; homepage = "https://github.com/rqlite/rqlite";
license = licenses.mit; changelog = "https://github.com/rqlite/rqlite/blob/${finalAttrs.src.tag}/CHANGELOG.md";
maintainers = with maintainers; [ dit7ya ]; license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dit7ya ];
}; };
} })