Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.11 38 lines 785 B view raw
1{ lib 2, buildGoModule 3, fetchFromGitHub 4}: 5 6buildGoModule rec { 7 pname = "brev-cli"; 8 version = "0.6.264"; 9 10 src = fetchFromGitHub { 11 owner = "brevdev"; 12 repo = pname; 13 rev = "v${version}"; 14 sha256 = "sha256-bE1tQgFg01FsR/rYgKZCDkhor0NZrHN3ACDbXHcpO6Q="; 15 }; 16 17 vendorHash = "sha256-IR/tgqh8rS4uN5jSOcopCutbHCKHSU9icUfRhOgu4t8="; 18 19 CGO_ENABLED = 0; 20 subPackages = [ "." ]; 21 22 ldflags = [ 23 "-s" 24 "-w" 25 "-X github.com/brevdev/brev-cli/pkg/cmd/version.Version=${src.rev}" 26 ]; 27 28 postInstall = '' 29 mv $out/bin/brev-cli $out/bin/brev 30 ''; 31 32 meta = with lib; { 33 description = "Connect your laptop to cloud computers"; 34 homepage = "https://github.com/brevdev/brev-cli"; 35 license = licenses.mit; 36 maintainers = with maintainers; [ dit7ya ]; 37 }; 38}