at v192 39 lines 1.1 kB view raw
1{ stdenv, fetchurl, SDL2, mesa_noglu, libpng, libjpeg, SDL2_ttf, libvorbis, gettext 2, physfs }: 3 4stdenv.mkDerivation rec { 5 name = "neverball-1.6.0"; 6 src = fetchurl { 7 url = "http://neverball.org/${name}.tar.gz"; 8 sha256 = "184gm36c6p6vaa6gwrfzmfh86klhnb03pl40ahsjsvprlk667zkk"; 9 }; 10 11 buildInputs = [ libpng SDL2 mesa_noglu libjpeg SDL2_ttf libvorbis gettext physfs ]; 12 13 dontPatchElf = true; 14 15 patchPhase = '' 16 sed -i -e 's@\./data@'$out/data@ share/base_config.h Makefile 17 sed -i -e 's@\./locale@'$out/locale@ share/base_config.h Makefile 18 sed -i -e 's@-lvorbisfile@-lvorbisfile -lX11 -lgcc_s@' Makefile 19 ''; 20 21 # The map generation code requires a writable HOME 22 preConfigure = "export HOME=$TMPDIR"; 23 24 installPhase = '' 25 mkdir -p $out/bin $out 26 cp -R data locale $out 27 cp neverball $out/bin 28 cp neverputt $out/bin 29 cp mapc $out/bin 30 ''; 31 32 meta = { 33 homepage = http://neverball.org/; 34 description = "Tilt the floor to roll a ball"; 35 license = "GPL"; 36 maintainers = with stdenv.lib.maintainers; [viric]; 37 platforms = with stdenv.lib.platforms; linux; 38 }; 39}