Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 744 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub, isPy3k 2, boost, freetype, ftgl, libGLU_combined 3, python 4}: 5 6let 7 8 pythonVersion = with lib.versions; "${major python.version}${minor python.version}"; 9 10in 11 12buildPythonPackage rec { 13 pname = "pyftgl"; 14 version = "0.4b"; 15 name = pname + "-" + version; 16 17 src = fetchFromGitHub { 18 owner = "umlaeute"; 19 repo = name; 20 rev = version; 21 sha256 = "12zcjv4cwwjihiaf74kslrdmmk4bs47h7006gyqfwdfchfjdgg4r"; 22 }; 23 24 postPatch = '' 25 sed -i "s,'boost_python','boost_python${pythonVersion}',g" setup.py 26 ''; 27 28 buildInputs = [ boost freetype ftgl libGLU_combined ]; 29 30 meta = with lib; { 31 description = "Python bindings for FTGL (FreeType for OpenGL)"; 32 license = licenses.gpl2Plus; 33 }; 34}