42 lines
921 B
Nix
42 lines
921 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildGoModule,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "render-cli";
|
|
version = "2.22.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "render-oss";
|
|
repo = "cli";
|
|
rev = "v${version}";
|
|
hash = "sha256-xFzpyF4uUopjAYmCKe3lUKFo9xGXuJDpQi7+1fHsM68=";
|
|
};
|
|
|
|
vendorHash = "sha256-cQ7JZYJe/ZcrOXwCz3X9ySmLS78uJeGpf29Ope/OyF0=";
|
|
|
|
# Tests require network access
|
|
doCheck = false;
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/render-oss/cli/pkg/cfg.Version=${version}"
|
|
];
|
|
|
|
postInstall = ''
|
|
mv $out/bin/cli $out/bin/render
|
|
'';
|
|
|
|
meta = {
|
|
description = "Official command-line interface for Render cloud hosting platform";
|
|
homepage = "https://github.com/render-oss/cli";
|
|
changelog = "https://github.com/render-oss/cli/releases/tag/v${version}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ jtamagnan ];
|
|
mainProgram = "render";
|
|
};
|
|
}
|