Merge pull request #265354 from selfuryon/feat/crossplane-cli

crossplane-cli: init at 1.14.3
This commit is contained in:
Emily Trau 2023-12-02 00:02:06 +11:00 committed by GitHub
commit f543200961
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 48 additions and 0 deletions

View file

@ -16323,6 +16323,12 @@
githubId = 4927883; githubId = 4927883;
matrix = "@seirl:matrix.org"; matrix = "@seirl:matrix.org";
}; };
selfuryon = {
name = "Sergei Iakovlev";
email = "siakovlev@pm.me";
github = "selfuryon";
githubId = 2993917;
};
sellout = { sellout = {
email = "greg@technomadic.org"; email = "greg@technomadic.org";
github = "sellout"; github = "sellout";

View file

@ -0,0 +1,42 @@
{ lib
, buildGoModule
, fetchFromGitHub
, nix-update-script
}:
buildGoModule rec {
pname = "crossplane-cli";
version = "1.14.3";
src = fetchFromGitHub {
owner = "crossplane";
repo = "crossplane";
rev = "v${version}";
hash = "sha256-rxN0Zi1UgQjDOkY2OJlG6826ARBzlEObJk4nDEc9784=";
};
vendorHash = "sha256-vkXvnEstD/czBDxmI96TIQB/L4jxhMwIS1XpHqVtxqY=";
ldflags = [
"-s"
"-w"
"-X github.com/crossplane/crossplane/internal/version.version=v${version}"
];
subPackages = [ "cmd/crank" ];
postInstall = ''
mv $out/bin/crank $out/bin/crossplane
'';
passthru.updateScript = nix-update-script { };
meta = with lib; {
homepage = "https://www.crossplane.io/";
changelog = "https://github.com/crossplane/crossplane/releases/tag/v${version}";
description = "Utility to make using Crossplane easier";
mainProgram = "crossplane";
license = licenses.asl20;
maintainers = with maintainers; [ selfuryon ];
};
}