diff --git a/pkgs/development/python-modules/pygame/default.nix b/pkgs/development/python-modules/pygame/default.nix index 85f93506c506..e0a09d94d7f0 100644 --- a/pkgs/development/python-modules/pygame/default.nix +++ b/pkgs/development/python-modules/pygame/default.nix @@ -1,4 +1,5 @@ -{ fetchurl, stdenv, python, pkgconfig, SDL, SDL_image, SDL_ttf, numeric }: +{ fetchurl, stdenv, python, pkgconfig, SDL, SDL_image, SDL_mixer, SDL_ttf +, numeric }: stdenv.mkDerivation { name = "pygame-1.7"; @@ -14,6 +15,8 @@ stdenv.mkDerivation { export LOCALBASE=/// sed -e "/origincdirs =/a'${SDL_image}/include/SDL','${SDL_image}/include'," -i config_unix.py sed -e "/origlibdirs =/aoriglibdirs += '${SDL_image}/lib'," -i config_unix.py + sed -e "/origincdirs =/a'${SDL_mixer}/include/SDL','${SDL_mixer}/include'," -i config_unix.py + sed -e "/origlibdirs =/aoriglibdirs += '${SDL_mixer}/lib'," -i config_unix.py sed -e "/origincdirs =/a'${SDL_ttf}/include/SDL','${SDL_ttf}/include'," -i config_unix.py sed -e "/origlibdirs =/aoriglibdirs += '${SDL_ttf}/lib'," -i config_unix.py sed -e "/origincdirs =/a'${numeric}/include/python2.5'," -i config_unix.py @@ -29,13 +32,14 @@ stdenv.mkDerivation { # That `config.py' is really deeply broken. sed -i Setup \ - -e "s|^NUMERIC *=.*$|NUMERIC = -I${numeric}/include/python2.5|g" + -e "s|^NUMERIC *=.*$|NUMERIC = -I${numeric}/include/python2.5|g ; + s|^MIXER *=.*$|MIXER = -I${SDL_mixer}/include -L${SDL_mixer}/lib -lSDL_mixer|g" ''; buildPhase = "yes Y | python setup.py build"; installPhase = "yes Y | python setup.py install --prefix=\${out} "; - + meta = { description = " Python library for games. diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 99dcc2eefe84..295935621ec8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4584,7 +4584,7 @@ let pygame = import ../development/python-modules/pygame { inherit fetchurl stdenv python pkgconfig SDL SDL_image - SDL_ttf numeric; + SDL_mixer SDL_ttf numeric; }; pygobject = import ../development/python-modules/pygobject {