mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 14:41:17 +00:00
google-cloud-sdk: Fix calls to itself
This commit is contained in:
parent
b6fabe24fd
commit
b1a6442c24
|
@ -37,10 +37,13 @@ stdenv.mkDerivation rec {
|
|||
# create wrappers with correct env
|
||||
for program in gcloud bq gsutil git-credential-gcloud.sh; do
|
||||
programPath="$out/google-cloud-sdk/bin/$program"
|
||||
wrapper="$out/bin/$program"
|
||||
makeWrapper "$programPath" "$wrapper" \
|
||||
binaryPath="$out/bin/$program"
|
||||
wrapProgram "$programPath" \
|
||||
--set CLOUDSDK_PYTHON "${python27}/bin/python" \
|
||||
--prefix PYTHONPATH : "$(toPythonPath ${cffi}):$(toPythonPath ${cryptography}):$(toPythonPath ${pyopenssl}):$(toPythonPath ${crcmod})"
|
||||
|
||||
mkdir -p $out/bin
|
||||
ln -s $programPath $binaryPath
|
||||
done
|
||||
|
||||
# install man pages
|
||||
|
|
Loading…
Reference in a new issue