mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 23:20:55 +00:00
python-pyglet: Add new package with version 1.1.4.
This involved a bit of patching, because pyglet is searching libraries at runtime, so we hardcode the library paths into pyglet/lib.py. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
96d298e7c4
commit
75c3ab1f55
|
@ -2502,6 +2502,28 @@ pythonPackages = python.modules // rec {
|
|||
};
|
||||
};
|
||||
|
||||
pyglet = buildPythonPackage rec {
|
||||
name = "pyglet-1.1.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://pyglet.googlecode.com/files/${name}.tar.gz";
|
||||
sha256 = "048n20d606i3njnzhajadnznnfm8pwchs43hxs50da9p79g2m6qx";
|
||||
};
|
||||
|
||||
patchPhase = let
|
||||
libs = [ pkgs.mesa pkgs.xlibs.libX11 pkgs.freetype pkgs.fontconfig ];
|
||||
paths = pkgs.lib.concatStringsSep "," (map (l: "\"${l}/lib\"") libs);
|
||||
in "sed -i -e 's|directories\.extend.*lib[^]]*|&,${paths}|' pyglet/lib.py";
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
homepage = "http://www.pyglet.org/";
|
||||
description = "A cross-platform windowing and multimedia library";
|
||||
license = stdenv.lib.licenses.bsd3;
|
||||
};
|
||||
};
|
||||
|
||||
pygments = buildPythonPackage rec {
|
||||
name = "Pygments-1.5";
|
||||
|
||||
|
|
Loading…
Reference in a new issue