google-app-engine-go-sdk: init at 1.9.53 (#25856)

* google-app-engine-go-sdk: init at 1.9.53

* google-app-engine-go-sdk: simplify python wrapper, use fetchzip

* add myself to maintainer list

* google-app-engine-go-sdk: add lufia as maintainer
This commit is contained in:
kadota kyohei 2017-05-21 03:33:57 +09:00 committed by Jörg Thalheim
parent c2dce6a745
commit a908f2a3df
3 changed files with 45 additions and 0 deletions

View File

@ -297,6 +297,7 @@
lsix = "Lancelot SIX <lsix@lancelotsix.com>"; lsix = "Lancelot SIX <lsix@lancelotsix.com>";
lucas8 = "Luc Chabassier <luc.linux@mailoo.org>"; lucas8 = "Luc Chabassier <luc.linux@mailoo.org>";
ludo = "Ludovic Courtès <ludo@gnu.org>"; ludo = "Ludovic Courtès <ludo@gnu.org>";
lufia = "Kyohei Kadota <lufia@lufia.org>";
luispedro = "Luis Pedro Coelho <luis@luispedro.org>"; luispedro = "Luis Pedro Coelho <luis@luispedro.org>";
lukego = "Luke Gorrie <luke@snabb.co>"; lukego = "Luke Gorrie <luke@snabb.co>";
lw = "Sergey Sofeychuk <lw@fmap.me>"; lw = "Sergey Sofeychuk <lw@fmap.me>";

View File

@ -0,0 +1,42 @@
{ stdenv, fetchzip, python27, python27Packages }:
assert stdenv.system == "x86_64-linux" || stdenv.system == "x86_64-darwin";
stdenv.mkDerivation rec {
name = "google-app-engine-go-sdk-${version}";
version = "1.9.53";
src =
if stdenv.system == "x86_64-linux" then
fetchzip {
url = "https://storage.googleapis.com/appengine-sdks/featured/go_appengine_sdk_linux_amd64-${version}.zip";
sha256 = "04lfwf7ad7gi8xn891lz87b7pr2gyycgpaq96i0cgckrj2awayz2";
}
else
fetchzip {
url = "https://storage.googleapis.com/appengine-sdks/featured/go_appengine_sdk_darwin_amd64-${version}.zip";
sha256 = "18hgl4wz3rhaklkwaxl8gm70h7l8k225f86da682kafawrr8zhv4";
};
buildInputs = with python27Packages; [
(python27.withPackages(ps: [ cffi cryptography pyopenssl ]))
];
installPhase = ''
mkdir -p $out/bin $out/share/
cp -r "$src" "$out/share/go_appengine"
# create wrappers with correct env
for i in goapp appcfg.py; do
ln -s "$out/share/go_appengine/$i" "$out/bin/$i"
done
'';
meta = with stdenv.lib; {
description = "Google App Engine SDK for Go";
version = version;
homepage = "https://cloud.google.com/appengine/docs/go/";
license = licenses.asl20;
platforms = with platforms; linux ++ darwin;
maintainers = with maintainers; [ lufia ];
};
}

View File

@ -2121,6 +2121,8 @@ with pkgs;
# rename to upower-notify? # rename to upower-notify?
go-upower-notify = callPackage ../tools/misc/upower-notify { }; go-upower-notify = callPackage ../tools/misc/upower-notify { };
google-app-engine-go-sdk = callPackage ../development/tools/google-app-engine-go-sdk { };
google-authenticator = callPackage ../os-specific/linux/google-authenticator { }; google-authenticator = callPackage ../os-specific/linux/google-authenticator { };
google-cloud-sdk = callPackage ../tools/admin/google-cloud-sdk { }; google-cloud-sdk = callPackage ../tools/admin/google-cloud-sdk { };