Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 37 lines 995 B view raw
1{ lib 2, buildGoModule 3, fetchFromGitHub 4}: 5 6buildGoModule rec { 7 pname = "rqlite"; 8 version = "7.6.1"; 9 10 src = fetchFromGitHub { 11 owner = "rqlite"; 12 repo = pname; 13 rev = "v${version}"; 14 sha256 = "sha256-WvEnMAz3dKG8xMlQzm7E0TmAgvsrRED50bb4Ved1+4U="; 15 }; 16 17 vendorSha256 = "sha256-qirt5g7dcjAnceejrBnfhDpA4LSEj7eOuznSlfUBUgo="; 18 19 subPackages = [ "cmd/rqlite" "cmd/rqlited" "cmd/rqbench" ]; 20 21 # Leaving other flags from https://github.com/rqlite/rqlite/blob/master/package.sh 22 # since automatically retriving those is nontrivial and inessential 23 ldflags = [ 24 "-s" "-w" 25 "-X github.com/rqlite/rqlite/cmd.Version=${src.rev}" 26 ]; 27 28 # Tests are in a different subPackage which fails trying to access the network 29 doCheck = false; 30 31 meta = with lib; { 32 description = "The lightweight, distributed relational database built on SQLite"; 33 homepage = "https://github.com/rqlite/rqlite"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ dit7ya ]; 36 }; 37}