mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
rqlite: modernize
This commit is contained in:
parent
2cf33d67ff
commit
4ed39bce58
1 changed files with 9 additions and 8 deletions
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue