{ lib , buildGoModule , fetchFromGitHub }: buildGoModule rec { pname = "brev-cli"; version = "0.6.293"; src = fetchFromGitHub { owner = "brevdev"; repo = pname; rev = "v${version}"; sha256 = "sha256-XRzwLPUNUSf88GqwdI8/WuodFVdoHuY8k6GYBgUco20="; }; vendorHash = "sha256-oVs7CFnijmyaQAEoYuKf56n+i2q9YMjq4HatbpWympw="; CGO_ENABLED = 0; subPackages = [ "." ]; ldflags = [ "-s" "-w" "-X github.com/brevdev/brev-cli/pkg/cmd/version.Version=${src.rev}" ]; postInstall = '' mv $out/bin/brev-cli $out/bin/brev ''; meta = with lib; { description = "Connect your laptop to cloud computers"; mainProgram = "brev"; homepage = "https://github.com/brevdev/brev-cli"; changelog = "https://github.com/brevdev/brev-cli/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ dit7ya ]; }; }