mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 16:53:21 +00:00
39 lines
785 B
Nix
39 lines
785 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "brev-cli";
|
|
version = "0.6.229";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "brevdev";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-DZ1WLuGoMndnLuvvoOQTkSG0v5Vd5z0zDAs5YLymT18=";
|
|
};
|
|
|
|
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";
|
|
homepage = "https://github.com/brevdev/brev-cli";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dit7ya ];
|
|
};
|
|
}
|