python3.pkgs.pyftgl: fix build with new boost

This commit is contained in:
Nikolay Amiantov 2017-10-18 03:14:01 +03:00
parent cb744d55c5
commit cae2a8ce9f

View File

@ -1,4 +1,4 @@
{ stdenv, buildPythonPackage, fetchFromGitHub
{ stdenv, buildPythonPackage, fetchFromGitHub, isPy3k
, boost, freetype, ftgl, mesa }:
buildPythonPackage rec {
@ -11,6 +11,10 @@ buildPythonPackage rec {
sha256 = "12zcjv4cwwjihiaf74kslrdmmk4bs47h7006gyqfwdfchfjdgg4r";
};
postPatch = stdenv.lib.optional isPy3k ''
sed -i "s,'boost_python','boost_python3',g" setup.py
'';
buildInputs = [ boost freetype ftgl mesa ];
meta = with stdenv.lib; {