diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2018-11-11 20:52:07 -0600 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2018-11-13 19:14:10 -0600 |
commit | bfbfe941abba2a0d7061c86d78b1e8facdeb17f8 (patch) | |
tree | 2f6b86640ce155d6ecf2c5ec79811ad63c2cc703 /pkgs/misc | |
parent | 1ba9fd335d90bca03b3868d3bf10c3d9a9de29c6 (diff) | |
download | nixlib-bfbfe941abba2a0d7061c86d78b1e8facdeb17f8.tar nixlib-bfbfe941abba2a0d7061c86d78b1e8facdeb17f8.tar.gz nixlib-bfbfe941abba2a0d7061c86d78b1e8facdeb17f8.tar.bz2 nixlib-bfbfe941abba2a0d7061c86d78b1e8facdeb17f8.tar.lz nixlib-bfbfe941abba2a0d7061c86d78b1e8facdeb17f8.tar.xz nixlib-bfbfe941abba2a0d7061c86d78b1e8facdeb17f8.tar.zst nixlib-bfbfe941abba2a0d7061c86d78b1e8facdeb17f8.zip |
treewide: use scons setup hook
Lots of packages can use it. Here is the list: - jackmix - klick - mixx - nova-filters - rhvoice - giv - mypaint - swift-im - bombono - mapnik - serf - nuitka - pyexiv2 - godot - hammer - toluapp - btanks - dxx-rebirth - endless-sky - globulation - the-powder-toy - fceux - gpsd - mongodb - rippled - mariadb - lprof
Diffstat (limited to 'pkgs/misc')
-rw-r--r-- | pkgs/misc/emulators/fceux/default.nix | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/misc/emulators/fceux/default.nix b/pkgs/misc/emulators/fceux/default.nix index 70cf32d54cc2..13ebeb1d2a96 100644 --- a/pkgs/misc/emulators/fceux/default.nix +++ b/pkgs/misc/emulators/fceux/default.nix @@ -8,23 +8,23 @@ stdenv.mkDerivation { sha256 = "0gl2i3qdmcm7v9m5kpfz98w05d8m33990jiwka043ya7lflxvrjb"; }; - nativeBuildInputs = [ pkgconfig ]; + nativeBuildInputs = [ pkgconfig scons ]; buildInputs = [ - scons zlib SDL lua5_1 + zlib SDL lua5_1 ]; - phases = "unpackPhase buildPhase"; + sconsFlags = "OPENGL=false GTK=false CREATE_AVI=false LOGO=false"; + prefixKey = "--prefix="; # 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 = '' + preBuild = '' 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 = { |