Skip to content

Commit

Permalink
python.pkgs.pyglet: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
FRidh committed Dec 31, 2017
1 parent 6665872 commit 6c86adf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkgs/development/python-modules/pyglet/default.nix
@@ -1,23 +1,24 @@
{ stdenv, buildPythonPackage, fetchPypi
, mesa, xorg, freetype, fontconfig}:
, mesa, xorg, freetype, fontconfig, future}:

buildPythonPackage rec {
version = "1.3.0";
pname = "pyglet";
name = "${pname}-${version}";

src = fetchPypi {
inherit pname version;
sha256 = "640a8f8e3d7bf8dbb551fa707f14021f619932990ab1401c48ba9dbcc6c2242c";
};

patchPhase = let
postPatch = let
libs = [ mesa xorg.libX11 freetype fontconfig ];
paths = builtins.concatStringsSep "," (map (l: "\"${l}/lib\"") libs);
in "sed -i -e 's|directories\.extend.*lib[^]]*|&,${paths}|' pyglet/lib.py";

doCheck = false;

propagatedBuildInputs = [ future ];

meta = with stdenv.lib; {
homepage = "http://www.pyglet.org/";
description = "A cross-platform windowing and multimedia library";
Expand Down

0 comments on commit 6c86adf

Please sign in to comment.