From 16ffeaead68e986ea0ab1a7e375721197ad33ad7 Mon Sep 17 00:00:00 2001 From: Sander van der Burg Date: Thu, 14 May 2009 13:48:45 +0000 Subject: [PATCH] Added EDuke32 package to celebrate the moment that 3DRealms is dead and Duke Nukem Forever is never going to be released svn path=/nixpkgs/trunk/; revision=15601 --- pkgs/games/eduke32/default.nix | 47 +++++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 5 ++++ 2 files changed, 52 insertions(+) create mode 100644 pkgs/games/eduke32/default.nix 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 <