mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +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,
|
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 ];
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue