Files
2026-05-15 20:24:01 +02:00

42 lines
917 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule (finalAttrs: {
pname = "brev-cli";
version = "0.6.316";
src = fetchFromGitHub {
owner = "brevdev";
repo = "brev-cli";
rev = "v${finalAttrs.version}";
sha256 = "sha256-L1NpFbZXHxQQJzcLHkOIcCnHu9HRybM0R+Iz1qOheGs=";
};
vendorHash = "sha256-CzGuEbq4I1ygYQsoyyXC6gDBMLg21dKQTKkrbwpAR2U=";
env.CGO_ENABLED = 0;
subPackages = [ "." ];
ldflags = [
"-s"
"-w"
"-X github.com/brevdev/brev-cli/pkg/cmd/version.Version=${finalAttrs.src.rev}"
];
postInstall = ''
mv $out/bin/brev-cli $out/bin/brev
'';
meta = {
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${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = [ ];
};
})