Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
42 lines
903 B
Nix
42 lines
903 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "brev-cli";
|
|
version = "0.6.314";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "brevdev";
|
|
repo = "brev-cli";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-/EzRKmpfQndZFL3c82u0w0V8EH/TFptU3zkHPvsIM6s=";
|
|
};
|
|
|
|
vendorHash = "sha256-CzGuEbq4I1ygYQsoyyXC6gDBMLg21dKQTKkrbwpAR2U=";
|
|
|
|
env.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 = {
|
|
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 = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ dit7ya ];
|
|
};
|
|
}
|