-
-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fceux: Add package for a NES emulator.
- Loading branch information
Sterling Stein
committed
Jun 7, 2014
1 parent
476a3d8
commit a0efad6
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{stdenv, fetchurl, scons, zlib, SDL, lua5, pkgconfig}: | ||
|
||
stdenv.mkDerivation { | ||
name = "fceux-2.2.2"; | ||
|
||
src = fetchurl { | ||
url = mirror://sourceforge/fceultra/Source%20Code/2.2.2%20src/fceux-2.2.2.src.tar.gz; | ||
sha256 = "1qg5bygla8ka30b7wqvq6dv84xc7pq0jspffh2jz75d1njyi2kc0"; | ||
}; | ||
|
||
buildInputs = [ | ||
scons zlib SDL lua5 pkgconfig | ||
]; | ||
|
||
phases = "unpackPhase buildPhase"; | ||
|
||
# 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. | ||
buildPhase = '' | ||
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" | ||
scons --prefix="$out" OPENGL=false GTK=false CREATE_AVI=false LOGO=false SYSTEM_LUA=false install | ||
''; | ||
|
||
meta = { | ||
description = "A Nintendo Entertainment System (NES) Emulator"; | ||
license = stdenv.lib.licenses.gpl2; | ||
homepage = http://www.fceux.com/; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters