depot/third_party/nixpkgs/pkgs/servers/sql/rqlite/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

37 lines
994 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "rqlite";
version = "8.21.3";
src = fetchFromGitHub {
owner = "rqlite";
repo = pname;
rev = "v${version}";
sha256 = "sha256-YnCa0gv+loI+PeQHZWar7GpEhqvQo1AwIj5LGTol3k0=";
};
vendorHash = "sha256-onR4n6ok6y9APRwGjBoMISbidGDVw19D48TkogRp1uM=";
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 ];
};
}