mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
38 lines
787 B
Nix
38 lines
787 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "brev-cli";
|
|
version = "0.6.197";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "brevdev";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-+elot37F8VW7BP18zB8wHbxTHLgnTlXLUJlr82/Y05w=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-uaLoh1VhJAT5liGqL77DLhAWviy5Ci8B16LuzCWuek8=";
|
|
|
|
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";
|
|
homepage = "https://github.com/brevdev/brev-cli";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dit7ya ];
|
|
};
|
|
}
|