Skip to content

Commit

Permalink
cloudfoundry-cli: init at 6.32.0
Browse files Browse the repository at this point in the history
(cherry picked from commit 77a3331)
  • Loading branch information
risicle authored and orivej committed Nov 26, 2017
1 parent 3c93a19 commit 0990eea
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
36 changes: 36 additions & 0 deletions pkgs/development/tools/cloudfoundry-cli/default.nix
@@ -0,0 +1,36 @@
{ stdenv, buildGoPackage, fetchFromGitHub, go }:

buildGoPackage rec {
name = "cloudfoundry-cli-${version}";
version = "6.32.0";

goPackagePath = "code.cloudfoundry.org/cli";

subPackages = [ "." ];

src = fetchFromGitHub {
rev = "v${version}";
owner = "cloudfoundry-attic";
repo = "cli-with-i18n";
sha256 = "16r8zvahn4b98krmyb8zq9370i6572dhz88bfxb3fnddcv6zy1ng";
};

outputs = [ "out" ];

buildFlagsArray = ''
-ldflags= -X ${goPackagePath}/version.binaryVersion=${version}
'';

installPhase = ''
install -Dm555 go/bin/cli "$out/bin/cf"
remove-references-to -t ${go} "$out/bin/cf"
install -Dm444 -t "$out/share/bash-completion/completions/" "$src/ci/installers/completion/cf"
'';

meta = with stdenv.lib; {
description = "The official command line client for Cloud Foundry";
homepage = https://github.com/cloudfoundry/cli;
maintainers = with maintainers; [ ris ];
license = licenses.asl20;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -6966,6 +6966,8 @@ with pkgs;

"cl-launch" = callPackage ../development/tools/misc/cl-launch {};

cloudfoundry-cli = callPackage ../development/tools/cloudfoundry-cli { };

coan = callPackage ../development/tools/analysis/coan { };

compile-daemon = callPackage ../development/tools/compile-daemon { };
Expand Down

0 comments on commit 0990eea

Please sign in to comment.