at v192 39 lines 1.2 kB view raw
1{ stdenv, fetchurl, pkgconfig, SDL2, alsaLib, gtk3, mesa_glu, makeWrapper 2, mesa, libarchive, libao, unzip, xdg_utils, gsettings_desktop_schemas }: 3 4stdenv.mkDerivation rec { 5 name = "nestopia-1.46.2"; 6 src = fetchurl { 7 url = https://github.com/rdanbrook/nestopia/archive/1.46.2.tar.gz; 8 sha256 = "07h49xwvg61dx20rk5p4r3ax2ar5y0ppvm60cqwqljyi9rdfbh7p"; 9 }; 10 11 # nondeterministic failures when creating directories 12 enableParallelBuilding = false; 13 14 buildInputs = [ pkgconfig SDL2 alsaLib gtk3 mesa_glu mesa makeWrapper 15 libarchive libao unzip xdg_utils gsettings_desktop_schemas ]; 16 17 installPhase = '' 18 mkdir -p $out/{bin,share/nestopia} 19 make install PREFIX=$out 20 ''; 21 22 preFixup = '' 23 for f in $out/bin/*; do 24 wrapProgram $f \ 25 --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH:$out/share" 26 done 27 ''; 28 29 patches = [ ./build-fix.patch ]; 30 31 meta = { 32 homepage = http://0ldsk00l.ca/nestopia/; 33 description = "NES emulator with a focus on accuracy"; 34 license = stdenv.lib.licenses.gpl2; 35 platforms = stdenv.lib.platforms.linux; 36 maintainers = with stdenv.lib.maintainers; [ MP2E ]; 37 }; 38} 39