mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
f5fa5fa4d6
* pkgs: refactor needless quoting of homepage meta attribute A lot of packages are needlessly quoting the homepage meta attribute (about 1400, 22%), this commit refactors all of those instances. * pkgs: Fixing some links that were wrongfully unquoted in the previous commit * Fixed some instances
46 lines
1.2 KiB
Nix
46 lines
1.2 KiB
Nix
{ stdenv, lib, fetchurl, buildPythonPackage, python, smpeg, libX11
|
|
, SDL, SDL_image, SDL_mixer, SDL_ttf, libpng, libjpeg, portmidi, freetype
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pygame";
|
|
name = "${pname}-${version}";
|
|
version = "1.9.3";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://pypi/p/pygame/pygame-${version}.tar.gz";
|
|
sha256 = "1hlydiyygl444bq5m5g8n3jsxsgrdyxlm42ipmfbw36wkf0j243m";
|
|
};
|
|
|
|
buildInputs = [
|
|
SDL SDL_image SDL_mixer SDL_ttf libpng libjpeg
|
|
portmidi libX11 freetype
|
|
];
|
|
|
|
# Tests fail because of no audio device and display.
|
|
doCheck = false;
|
|
|
|
preConfigure = ''
|
|
sed \
|
|
-e "s/^origincdirs = .*/origincdirs = []/" \
|
|
-e "s/^origlibdirs = .*/origlibdirs = []/" \
|
|
-e "/\/include\/smpeg/d" \
|
|
-i config_unix.py
|
|
${lib.concatMapStrings (dep: ''
|
|
sed \
|
|
-e "/^origincdirs =/aorigincdirs += ['${lib.getDev dep}/include']" \
|
|
-e "/^origlibdirs =/aoriglibdirs += ['${lib.getLib dep}/lib']" \
|
|
-i config_unix.py
|
|
'') buildInputs
|
|
}
|
|
LOCALBASE=/ ${python.interpreter} config.py
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Python library for games";
|
|
homepage = http://www.pygame.org/;
|
|
license = licenses.lgpl21Plus;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|