nixpkgs/pkgs/development/misc/brev-cli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
785 B
Nix
Raw Normal View History

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "brev-cli";
2023-11-01 05:32:02 +01:00
version = "0.6.264";
src = fetchFromGitHub {
owner = "brevdev";
repo = pname;
rev = "v${version}";
2023-11-01 05:32:02 +01:00
sha256 = "sha256-bE1tQgFg01FsR/rYgKZCDkhor0NZrHN3ACDbXHcpO6Q=";
};
2023-02-02 13:52:38 +01:00
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 ];
};
}