2019-06-16 20:59:06 +01:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub
|
2018-09-23 21:39:21 +01:00
|
|
|
, boost, freetype, ftgl, libGLU_combined
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
pythonVersion = with lib.versions; "${major python.version}${minor python.version}";
|
|
|
|
|
|
|
|
in
|
2017-08-31 15:01:39 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-11-09 11:26:09 +00:00
|
|
|
pname = "pyftgl";
|
|
|
|
version = "0.4b";
|
|
|
|
name = pname + "-" + version;
|
2017-08-31 15:01:39 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "umlaeute";
|
2017-11-09 11:26:09 +00:00
|
|
|
repo = name;
|
|
|
|
rev = version;
|
2017-08-31 15:01:39 +01:00
|
|
|
sha256 = "12zcjv4cwwjihiaf74kslrdmmk4bs47h7006gyqfwdfchfjdgg4r";
|
|
|
|
};
|
|
|
|
|
2018-09-23 21:39:21 +01:00
|
|
|
postPatch = ''
|
|
|
|
sed -i "s,'boost_python','boost_python${pythonVersion}',g" setup.py
|
2017-10-18 01:14:01 +01:00
|
|
|
'';
|
|
|
|
|
2018-02-24 13:12:44 +00:00
|
|
|
buildInputs = [ boost freetype ftgl libGLU_combined ];
|
2017-08-31 15:01:39 +01:00
|
|
|
|
2018-09-23 21:39:21 +01:00
|
|
|
meta = with lib; {
|
2017-08-31 15:01:39 +01:00
|
|
|
description = "Python bindings for FTGL (FreeType for OpenGL)";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
};
|
|
|
|
}
|