depot/third_party/nixpkgs/pkgs/servers/sql/rqlite/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

37 lines
994 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "rqlite";
version = "8.24.7";
src = fetchFromGitHub {
owner = "rqlite";
repo = pname;
rev = "v${version}";
sha256 = "sha256-RuLc5IYy5NDexE1UHWrcJkvKgn4hQ0TkJFcbRIwxk18=";
};
vendorHash = "sha256-c6HQukT32jK9B48FzW0WeY7VxPkNwDipKUTrrICsaKw=";
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 ];
};
}