504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
34 lines
741 B
Nix
34 lines
741 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub
|
|
, boost, freetype, ftgl, libGLU, libGL
|
|
, python
|
|
}:
|
|
|
|
let
|
|
|
|
pythonVersion = with lib.versions; "${major python.version}${minor python.version}";
|
|
|
|
in
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyftgl";
|
|
version = "0.4b";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "umlaeute";
|
|
repo = "${pname}-${version}";
|
|
rev = version;
|
|
sha256 = "12zcjv4cwwjihiaf74kslrdmmk4bs47h7006gyqfwdfchfjdgg4r";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i "s,'boost_python','boost_python${pythonVersion}',g" setup.py
|
|
'';
|
|
|
|
buildInputs = [ boost freetype ftgl libGLU libGL ];
|
|
|
|
meta = with lib; {
|
|
description = "Python bindings for FTGL (FreeType for OpenGL)";
|
|
license = licenses.gpl2Plus;
|
|
};
|
|
}
|