diff options
author | Wael Nasreddine <wael.nasreddine@gmail.com> | 2019-11-28 16:22:07 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-28 16:22:07 -0800 |
commit | ef20b37ff74ded2698fbf6cc31a6a3023a35d5fc (patch) | |
tree | a75ce395e09b657b3045f49434190e56025e9511 /pkgs | |
parent | a905fcb40de9de48a482eeaf1104f255d910abb7 (diff) |
ccloud-cli: init at 0.202.0 (#72847)
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/tools/ccloud-cli/default.nix | 33 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/tools/ccloud-cli/default.nix b/pkgs/development/tools/ccloud-cli/default.nix new file mode 100644 index 000000000000..7fa530297722 --- /dev/null +++ b/pkgs/development/tools/ccloud-cli/default.nix @@ -0,0 +1,33 @@ +{ stdenv, autoPatchelfHook, fetchurl, lib }: + +stdenv.mkDerivation rec { + pname = "ccloud-cli"; + version = "0.202.0"; + + # To get the latest version: + # curl -L 'https://s3-us-west-2.amazonaws.com/confluent.cloud?prefix=ccloud-cli/archives/&delimiter=/' | nix run nixpkgs.libxml2 -c xmllint --format - + src = fetchurl (if stdenv.hostPlatform.isDarwin then { + url = "https://s3-us-west-2.amazonaws.com/confluent.cloud/ccloud-cli/archives/${version}/ccloud_v${version}_darwin_amd64.tar.gz"; + sha256 = "1w7c7fwpjj6f26nmcgm6rkrl4v9zhdpygkh02la77n23lg8wxah5"; + } else { + url = "https://s3-us-west-2.amazonaws.com/confluent.cloud/ccloud-cli/archives/${version}/ccloud_v${version}_linux_amd64.tar.gz"; + sha256 = "1xbhv2viw8cbwv03rfq99jddnw5lwy812a8xby348290l323xi89"; + }); + + nativeBuildInputs = [ autoPatchelfHook ]; + + installPhase = '' + mkdir -p $out/{bin,share/doc/ccloud-cli} + cp ccloud $out/bin/ + cp LICENSE $out/share/doc/ccloud-cli/ + cp -r legal $out/share/doc/ccloud-cli/ + ''; + + meta = with lib; { + description = "Confluent Cloud CLI"; + homepage = https://docs.confluent.io/current/cloud/cli/index.html; + license = licenses.unfree; + maintainers = with maintainers; [ kalbasit ]; + platforms = platforms.linux ++ platforms.darwin; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ce42f22d8e1c..85e22c3e6af2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10006,6 +10006,8 @@ in nodejs = nodejs-10_x; }; + ccloud-cli = callPackage ../development/tools/ccloud-cli { }; + htmlunit-driver = callPackage ../development/tools/selenium/htmlunit-driver { }; hyenae = callPackage ../tools/networking/hyenae { }; |