forked from mirrors/nixpkgs
rqlite: init at 7.6.1 (#187962)
* rqlite: init at 7.6.1 * Update pkgs/servers/sql/rqlite/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> --------- Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
4214cf8eb8
commit
b89976519b
37
pkgs/servers/sql/rqlite/default.nix
Normal file
37
pkgs/servers/sql/rqlite/default.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "rqlite";
|
||||
version = "7.6.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rqlite";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-WvEnMAz3dKG8xMlQzm7E0TmAgvsrRED50bb4Ved1+4U=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-qirt5g7dcjAnceejrBnfhDpA4LSEj7eOuznSlfUBUgo=";
|
||||
|
||||
subPackages = [ "cmd/rqlite" "cmd/rqlited" "cmd/rqbench" ];
|
||||
|
||||
# Leaving other flags from https://github.com/rqlite/rqlite/blob/master/package.sh
|
||||
# since automatically retriving those is nontrivial and inessential
|
||||
ldflags = [
|
||||
"-s" "-w"
|
||||
"-X github.com/rqlite/rqlite/cmd.Version=${src.rev}"
|
||||
];
|
||||
|
||||
# Tests are in a different subPackage which fails trying to access the network
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "The lightweight, distributed relational database built on SQLite";
|
||||
homepage = "https://github.com/rqlite/rqlite";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ dit7ya ];
|
||||
};
|
||||
}
|
|
@ -23014,6 +23014,8 @@ with pkgs;
|
|||
|
||||
rover = callPackage ../development/tools/rover { };
|
||||
|
||||
rqlite = callPackage ../servers/sql/rqlite { };
|
||||
|
||||
rshell = python3.pkgs.callPackage ../development/embedded/rshell { };
|
||||
|
||||
rttr = callPackage ../development/libraries/rttr { };
|
||||
|
|
Loading…
Reference in a new issue