diff --git a/pkgs/games/eduke32/default.nix b/pkgs/games/eduke32/default.nix new file mode 100644 index 000000000000..17ebadb9f966 --- /dev/null +++ b/pkgs/games/eduke32/default.nix @@ -0,0 +1,47 @@ +{stdenv, fetchurl, SDL, SDL_mixer, unzip, libvorbis, mesa, gtk, pkgconfig, makeDesktopItem}: + +stdenv.mkDerivation rec { + name = "eduke32"; + src = fetchurl { + url = http://wiki.eduke32.com/stuff/source_code/eduke32_src_20090131.zip; + sha256 = "e6b8cc2c7e0c32a6aa5a64359be8b8c494dcae08dda87e1de718c030426ef74d"; + }; + buildInputs = [ unzip SDL SDL_mixer libvorbis mesa gtk pkgconfig ]; + NIX_LDFLAGS = "-lgcc_s"; + desktopItem = makeDesktopItem { + name = "eduke32"; + exec = "eduke32-wrapper"; + comment = "Duke Nukem 3D port"; + desktopName = "EDuke32"; + genericName = "Duke Nukem 3D port"; + categories = "Application;Game;"; + }; + + installPhase = '' + # Install binaries + ensureDir $out/bin + cp eduke32 mapster32 $out/bin + + # Make wrapper script + cat > $out/bin/eduke32-wrapper <