mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-23 05:37:27 +03:00
crossplane-cli: init at 1.14.3
This commit is contained in:
parent
9396a9d95b
commit
97d9f6ddeb
42
pkgs/by-name/cr/crossplane-cli/package.nix
Normal file
42
pkgs/by-name/cr/crossplane-cli/package.nix
Normal 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 ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user