1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 06:01:15 +00:00
nixpkgs/pkgs/games/neverball/default.nix
Vladimír Čunát 4b263946dd qt3, graphicsmagick137, fox, neverball: fix build
Broken after freetype propagating libpng, which hid the older ones.
Reordering is enough to ensure the older libpng gets picked.
2014-07-09 21:52:04 +02:00

40 lines
1.1 KiB
Nix

{stdenv, fetchurl, SDL, mesa, libpng, libjpeg, SDL_ttf, libvorbis, gettext,
physfs} :
stdenv.mkDerivation rec {
name = "neverball-1.5.4";
src = fetchurl {
url = "http://neverball.org/${name}.tar.gz";
sha256 = "19hdgdmv20y56xvbj4vk0zdmyaa8kv7df85advkchw7cdsgwlcga";
};
buildInputs = [ libpng SDL mesa libjpeg SDL_ttf libvorbis gettext physfs];
dontPatchElf = true;
patchPhase = ''
sed -i -e 's@\./data@'$out/data@ share/base_config.h Makefile
sed -i -e 's@\./locale@'$out/locale@ share/base_config.h Makefile
sed -i -e 's@-lvorbisfile@-lvorbisfile -lX11 -lgcc_s@' Makefile
'';
# The map generation code requires a writable HOME
preConfigure = "export HOME=$TMPDIR";
installPhase = ''
mkdir -p $out/bin $out
cp -R data locale $out
cp neverball $out/bin
cp neverputt $out/bin
cp mapc $out/bin
'';
meta = {
homepage = http://neverball.org/;
description = "Tilt the floor to roll a ball";
license = "GPL";
maintainers = with stdenv.lib.maintainers; [viric];
platforms = with stdenv.lib.platforms; linux;
};
}