depot/third_party/nixpkgs/pkgs/servers/sql/rqlite/default.nix
Default email 98eb3e9ef5 Project import generated by Copybara.
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
2024-07-01 15:47:52 +00:00

37 lines
990 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "rqlite";
version = "8.26.2";
src = fetchFromGitHub {
owner = "rqlite";
repo = pname;
rev = "v${version}";
sha256 = "sha256-GGqnhsEvv8pnaRmJO+IX64VNQVnBaGZcUKMOiW/PJaQ=";
};
vendorHash = "sha256-x1W2niLqhAcroh67cssDuuiJA3Pd5W4Wkh12uKqSfDI=";
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 = "Lightweight, distributed relational database built on SQLite";
homepage = "https://github.com/rqlite/rqlite";
license = licenses.mit;
maintainers = with maintainers; [ dit7ya ];
};
}