Skip to content

Commit 0990eea

Browse files
risicleorivej
authored andcommittedNov 26, 2017
cloudfoundry-cli: init at 6.32.0
(cherry picked from commit 77a3331)
1 parent 3c93a19 commit 0990eea

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{ stdenv, buildGoPackage, fetchFromGitHub, go }:
2+
3+
buildGoPackage rec {
4+
name = "cloudfoundry-cli-${version}";
5+
version = "6.32.0";
6+
7+
goPackagePath = "code.cloudfoundry.org/cli";
8+
9+
subPackages = [ "." ];
10+
11+
src = fetchFromGitHub {
12+
rev = "v${version}";
13+
owner = "cloudfoundry-attic";
14+
repo = "cli-with-i18n";
15+
sha256 = "16r8zvahn4b98krmyb8zq9370i6572dhz88bfxb3fnddcv6zy1ng";
16+
};
17+
18+
outputs = [ "out" ];
19+
20+
buildFlagsArray = ''
21+
-ldflags= -X ${goPackagePath}/version.binaryVersion=${version}
22+
'';
23+
24+
installPhase = ''
25+
install -Dm555 go/bin/cli "$out/bin/cf"
26+
remove-references-to -t ${go} "$out/bin/cf"
27+
install -Dm444 -t "$out/share/bash-completion/completions/" "$src/ci/installers/completion/cf"
28+
'';
29+
30+
meta = with stdenv.lib; {
31+
description = "The official command line client for Cloud Foundry";
32+
homepage = https://github.com/cloudfoundry/cli;
33+
maintainers = with maintainers; [ ris ];
34+
license = licenses.asl20;
35+
};
36+
}

‎pkgs/top-level/all-packages.nix

+2
Original file line numberDiff line numberDiff line change
@@ -6966,6 +6966,8 @@ with pkgs;
69666966

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

6969+
cloudfoundry-cli = callPackage ../development/tools/cloudfoundry-cli { };
6970+
69696971
coan = callPackage ../development/tools/analysis/coan { };
69706972

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

0 commit comments

Comments
 (0)
Please sign in to comment.