diff options
author | Daiderd Jordan <daiderd@gmail.com> | 2018-08-17 01:35:17 +0200 |
---|---|---|
committer | Daiderd Jordan <daiderd@gmail.com> | 2018-08-17 01:36:41 +0200 |
commit | 8bef91d84a51d7cc7c2774dd4b2fea840f95a91f (patch) | |
tree | ffc051004b6dcb99a40491bb5ee77bb2e0eecadc /pkgs/development/python-modules/protobuf | |
parent | d8b202698ce48e43dbe3f7fb9d704136615d1254 (diff) | |
download | nixpkgs-8bef91d84a51d7cc7c2774dd4b2fea840f95a91f.tar nixpkgs-8bef91d84a51d7cc7c2774dd4b2fea840f95a91f.tar.gz nixpkgs-8bef91d84a51d7cc7c2774dd4b2fea840f95a91f.tar.bz2 nixpkgs-8bef91d84a51d7cc7c2774dd4b2fea840f95a91f.tar.lz nixpkgs-8bef91d84a51d7cc7c2774dd4b2fea840f95a91f.tar.xz nixpkgs-8bef91d84a51d7cc7c2774dd4b2fea840f95a91f.tar.zst nixpkgs-8bef91d84a51d7cc7c2774dd4b2fea840f95a91f.zip |
protobuf: fix missing google.protobuf.compiler
Diffstat (limited to 'pkgs/development/python-modules/protobuf')
-rw-r--r-- | pkgs/development/python-modules/protobuf/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/protobuf/default.nix b/pkgs/development/python-modules/protobuf/default.nix index 1a345b19ef9..9059080c919 100644 --- a/pkgs/development/python-modules/protobuf/default.nix +++ b/pkgs/development/python-modules/protobuf/default.nix @@ -28,7 +28,10 @@ buildPythonPackage rec { export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION_VERSION=2 ''; - preBuild = optionalString (versionAtLeast protobuf.version "2.6.0") '' + preBuild = '' + # Workaround for https://github.com/google/protobuf/issues/2895 + ${python}/bin/${python.executable} setup.py build + '' + optionalString (versionAtLeast protobuf.version "2.6.0") '' ${python}/bin/${python.executable} setup.py build_ext --cpp_implementation ''; |