mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-05-16 14:41:07 +00:00
google-app-engine-go-sdk: fix error on macOS
This commit is contained in:
parent
3b4ef34fa0
commit
0146f18390
1 changed files with 7 additions and 5 deletions
|
@ -1,7 +1,9 @@
|
||||||
{ stdenv, fetchzip, python27, python27Packages }:
|
{ stdenv, fetchzip, python27, python27Packages, makeWrapper }:
|
||||||
|
|
||||||
assert stdenv.system == "x86_64-linux" || stdenv.system == "x86_64-darwin";
|
assert stdenv.system == "x86_64-linux" || stdenv.system == "x86_64-darwin";
|
||||||
|
|
||||||
|
with python27Packages;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "google-app-engine-go-sdk-${version}";
|
name = "google-app-engine-go-sdk-${version}";
|
||||||
version = "1.9.53";
|
version = "1.9.53";
|
||||||
|
@ -17,9 +19,7 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "18hgl4wz3rhaklkwaxl8gm70h7l8k225f86da682kafawrr8zhv4";
|
sha256 = "18hgl4wz3rhaklkwaxl8gm70h7l8k225f86da682kafawrr8zhv4";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = with python27Packages; [
|
buildInputs = [python27 makeWrapper];
|
||||||
(python27.withPackages(ps: [ cffi cryptography pyopenssl ]))
|
|
||||||
];
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin $out/share/
|
mkdir -p $out/bin $out/share/
|
||||||
|
@ -27,7 +27,9 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
# create wrappers with correct env
|
# create wrappers with correct env
|
||||||
for i in goapp appcfg.py; do
|
for i in goapp appcfg.py; do
|
||||||
ln -s "$out/share/go_appengine/$i" "$out/bin/$i"
|
makeWrapper "$out/share/go_appengine/$i" "$out/bin/$i" \
|
||||||
|
--prefix PATH : "${python27}/bin" \
|
||||||
|
--prefix PYTHONPATH : "$(toPythonPath ${cffi}):$(toPythonPath ${cryptography}):$(toPythonPath ${pyopenssl})"
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue