7 version-channel ? "stable",
10 inherit (stdenvNoCC.hostPlatform) system;
12 if "${version-channel}" == "main" then import ./sources-main.nix else import ./sources-stable.nix;
13 arch = sources.archMap.${system};
16 stdenvNoCC.mkDerivation {
17 pname = if "${version-channel}" == "main" then "upbound-main" else "upbound";
18 version = sources.version;
21 url = sources.fetchurlAttrSet.${system}.docker-credential-up.url;
22 sha256 = sources.fetchurlAttrSet.${system}.docker-credential-up.hash;
26 url = sources.fetchurlAttrSet.${system}.up.url;
27 sha256 = sources.fetchurlAttrSet.${system}.up.hash;
33 nativeBuildInputs = [ installShellFiles ];
40 cp ./${arch}/up $out/bin/up
43 cp ./${arch}/docker-credential-up $out/bin/docker-credential-up
44 chmod +x $out/bin/docker-credential-up
50 installShellCompletion --bash --name up <(echo complete -C up up)
53 versionCheckProgramArg = "version";
55 nativeInstallCheckInputs = [
61 passthru.updateScript = [
67 versionCheck = versionCheckHook;
71 description = "CLI for interacting with Upbound Cloud, Upbound Enterprise, and Universal Crossplane (UXP)";
72 homepage = "https://upbound.io";
73 license = lib.licenses.unfree;
74 maintainers = with lib.maintainers; [
79 platforms = sources.platformList;