mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
cloudfoundry-cli: use installShellFiles
This commit is contained in:
parent
b83b2591dd
commit
481c7bbd71
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
{ stdenv, buildGoPackage, fetchFromGitHub, installShellFiles }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
pname = "cloudfoundry-cli";
|
pname = "cloudfoundry-cli";
|
||||||
@ -15,6 +15,8 @@ buildGoPackage rec {
|
|||||||
sha256 = "0dqrkimwhw016icgyf4cyipzy6vdz5jgickm33xxd9018dh3ibwq";
|
sha256 = "0dqrkimwhw016icgyf4cyipzy6vdz5jgickm33xxd9018dh3ibwq";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
makeTarget = let hps = stdenv.hostPlatform.system; in
|
makeTarget = let hps = stdenv.hostPlatform.system; in
|
||||||
if hps == "x86_64-darwin" then
|
if hps == "x86_64-darwin" then
|
||||||
"out/cf-cli_osx"
|
"out/cf-cli_osx"
|
||||||
@ -33,7 +35,7 @@ buildGoPackage rec {
|
|||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -Dm555 out/cf "$bin/bin/cf"
|
install -Dm555 out/cf "$bin/bin/cf"
|
||||||
install -Dm444 -t "$bin/share/bash-completion/completions/" "$src/ci/installers/completion/cf"
|
installShellCompletion --bash "$src/ci/installers/completion/cf"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user