Skip to content

Commit

Permalink
Merge pull request #43987 from risicle/ris-cf-cli-6-37-0
Browse files Browse the repository at this point in the history
cloudfoundry-cli: 6.36.1 -> 6.37.0
  • Loading branch information
Mic92 committed Jul 23, 2018
2 parents 12abb6f + e017ce0 commit b414694
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pkgs/development/tools/cloudfoundry-cli/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

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

Expand All @@ -12,17 +12,18 @@ buildGoPackage rec {
owner = "cloudfoundry";
repo = "cli";
rev = "v${version}";
sha256 = "19inl7qs2acs59p3gnl5zdsxym0wp2rn05q0zfg7rwf5sjh68amp";
sha256 = "1v4f1fyydpzkfir46g4ppbf3zmk3ym6kxswpkdjls8h3dbb2fbnv";
};

outputs = [ "out" ];

buildFlagsArray = ''
-ldflags= -X ${goPackagePath}/version.binaryVersion=${version}
buildPhase = ''
cd go/src/${goPackagePath}
CF_BUILD_DATE="1970-01-01" make build
'';

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

0 comments on commit b414694

Please sign in to comment.