mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
716825a090
Semi-automatic update. These checks were performed: - built on NixOS - ran `/nix/store/27q1wf9bs3qp60l2q0b2pyzf6ykijarj-fceux-2.2.3/bin/fceux -h` got 0 exit code - ran `/nix/store/27q1wf9bs3qp60l2q0b2pyzf6ykijarj-fceux-2.2.3/bin/fceux --help` got 0 exit code - ran `/nix/store/27q1wf9bs3qp60l2q0b2pyzf6ykijarj-fceux-2.2.3/bin/fceux -h` and found version 2.2.3 - ran `/nix/store/27q1wf9bs3qp60l2q0b2pyzf6ykijarj-fceux-2.2.3/bin/fceux --help` and found version 2.2.3 - found 2.2.3 with grep in /nix/store/27q1wf9bs3qp60l2q0b2pyzf6ykijarj-fceux-2.2.3 - found 2.2.3 in filename of file in /nix/store/27q1wf9bs3qp60l2q0b2pyzf6ykijarj-fceux-2.2.3
36 lines
1.1 KiB
Nix
36 lines
1.1 KiB
Nix
{stdenv, fetchurl, scons, zlib, SDL, lua5_1, pkgconfig}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "fceux-2.2.3";
|
|
|
|
src = fetchurl {
|
|
url = mirror://sourceforge/fceultra/Source%20Code/2.2.3%20src/fceux-2.2.3.src.tar.gz;
|
|
sha256 = "0gl2i3qdmcm7v9m5kpfz98w05d8m33990jiwka043ya7lflxvrjb";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [
|
|
scons zlib SDL lua5_1
|
|
];
|
|
|
|
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 install
|
|
'';
|
|
|
|
meta = {
|
|
description = "A Nintendo Entertainment System (NES) Emulator";
|
|
license = stdenv.lib.licenses.gpl2;
|
|
homepage = http://www.fceux.com/;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|