ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
39 lines
811 B
Nix
39 lines
811 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "brev-cli";
|
|
version = "0.6.277";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "brevdev";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-s80veDxN0GfHKOwDhxx1ArZXqk8OPSl+d/Ruxj0oLJA=";
|
|
};
|
|
|
|
vendorHash = "sha256-IR/tgqh8rS4uN5jSOcopCutbHCKHSU9icUfRhOgu4t8=";
|
|
|
|
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";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dit7ya ];
|
|
};
|
|
}
|