diff options
| author | Ricardo G <fuzztkd@gmail.com> | 2022-01-31 14:32:32 -0800 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2022-02-01 00:08:18 +0000 |
| commit | 1b612cf588ea997ff5ad6ad8055e580f812b19cd (patch) | |
| tree | bb2b83ae9fb689384b0d3ba836bb8009ddbe38f1 | |
| parent | pipenv: 2021.11.23 -> 2022.1.8 (diff) | |
| download | nixpkgs-origin/backport-157600-to-release-21.11.tar.gz | |
confluent-cli: init at 2.4.0origin/backport-157600-to-release-21.11
(cherry picked from commit 0ef4c010377e68e61e0b0040f5690a8b5ad13b3c)
| -rw-r--r-- | pkgs/development/tools/confluent-cli/default.nix | 42 | ||||
| -rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/development/tools/confluent-cli/default.nix b/pkgs/development/tools/confluent-cli/default.nix new file mode 100644 index 000000000000..9664a75703a2 --- /dev/null +++ b/pkgs/development/tools/confluent-cli/default.nix @@ -0,0 +1,42 @@ +{ stdenv, autoPatchelfHook, fetchurl, lib }: + +stdenv.mkDerivation rec { + pname = "confluent-cli"; + version = "2.4.0"; + + # To get the latest version: + # curl -L https://cnfl.io/cli | sh -s -- -l | grep -v latest | sort -V | tail -n1 + src = fetchurl (if stdenv.hostPlatform.isDarwin then { + url = "https://s3-us-west-2.amazonaws.com/confluent.cloud/confluent-cli/archives/${version}/confluent_v${version}_darwin_amd64.tar.gz"; + sha256 = "1xkf7p9cn37k8j57cgbzxhqgnmchf86jyiza91bf6ddvm6jsm2gd"; + } else { + url = "https://s3-us-west-2.amazonaws.com/confluent.cloud/confluent-cli/archives/${version}/confluent_v${version}_linux_amd64.tar.gz"; + sha256 = "1wvy7x56cc7imycf0d83mxcqzdvv56cc0zbp913xgghjn9dl2z7a"; + }); + + nativeBuildInputs = [ autoPatchelfHook ]; + + dontStrip = stdenv.isDarwin; + + installPhase = '' + mkdir -p $out/{bin,share/doc/confluent-cli} + cp confluent $out/bin/ + cp LICENSE $out/share/doc/confluent-cli/ + cp -r legal $out/share/doc/confluent-cli/ + ''; + + meta = with lib; { + description = "Confluent CLI"; + homepage = "https://docs.confluent.io/confluent-cli/current/overview.html"; + license = licenses.unfree; + maintainers = with maintainers; [ rguevara84 ]; + + # TODO: There's support for i686 systems but I do not have any such system + # to build it locally on, it's also unfree so I cannot rely on ofborg to + # build it. Get the list of supported system by looking at the list of + # files in the S3 bucket: + # + # https://s3-us-west-2.amazonaws.com/confluent.cloud?prefix=confluent-cli/archives/1.25.0/&delimiter=/%27 + platforms = [ "x86_64-linux" "x86_64-darwin" ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ef3e2bc4257c..c4483af5a9d8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14726,6 +14726,8 @@ with pkgs; ccloud-cli = callPackage ../development/tools/ccloud-cli { }; + confluent-cli = callPackage ../development/tools/confluent-cli { }; + htmlunit-driver = callPackage ../development/tools/selenium/htmlunit-driver { }; hyenae = callPackage ../tools/networking/hyenae { }; |
