2016-02-13 15:56:35 +00:00
|
|
|
{stdenv, fetchurl, scons, zlib, SDL, lua5_1, pkgconfig}:
|
2014-06-07 23:08:57 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2018-02-26 05:20:22 +00:00
|
|
|
name = "fceux-2.2.3";
|
2014-06-07 23:08:57 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-02-26 05:20:22 +00:00
|
|
|
url = mirror://sourceforge/fceultra/Source%20Code/2.2.3%20src/fceux-2.2.3.src.tar.gz;
|
|
|
|
sha256 = "0gl2i3qdmcm7v9m5kpfz98w05d8m33990jiwka043ya7lflxvrjb";
|
2014-06-07 23:08:57 +01:00
|
|
|
};
|
|
|
|
|
2018-11-12 02:52:07 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig scons ];
|
2014-06-07 23:08:57 +01:00
|
|
|
buildInputs = [
|
2018-11-12 02:52:07 +00:00
|
|
|
zlib SDL lua5_1
|
2014-06-07 23:08:57 +01:00
|
|
|
];
|
|
|
|
|
2018-11-12 02:52:07 +00:00
|
|
|
sconsFlags = "OPENGL=false GTK=false CREATE_AVI=false LOGO=false";
|
|
|
|
prefixKey = "--prefix=";
|
2014-06-07 23:08:57 +01:00
|
|
|
|
|
|
|
# sed allows scons to find libraries in nix.
|
|
|
|
# mkdir is a hack to make scons succeed. It still doesn't
|
|
|
|
# actually put the files in there due to a bug in the SConstruct file.
|
|
|
|
# OPENGL doesn't work because fceux dlopens the library.
|
2018-11-12 02:52:07 +00:00
|
|
|
preBuild = ''
|
2014-06-07 23:08:57 +01:00
|
|
|
sed -e 's/env *= *Environment *.*/&; env['"'"'ENV'"'"']=os.environ;/' -i SConstruct
|
|
|
|
export CC="gcc"
|
|
|
|
export CXX="g++"
|
|
|
|
mkdir -p "$out" "$out/share/applications" "$out/share/pixmaps"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A Nintendo Entertainment System (NES) Emulator";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
homepage = http://www.fceux.com/;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-06-07 23:08:57 +01:00
|
|
|
};
|
|
|
|
}
|