From bebcbcde8c34101f394492e7f7928fac071476cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Wed, 27 Apr 2011 21:57:27 +0000 Subject: [PATCH] Adding the videogame Naev (beta version, because they label the non-beta 'deprecated') svn path=/nixpkgs/trunk/; revision=27017 --- pkgs/games/naev/default.nix | 33 +++++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/games/naev/default.nix diff --git a/pkgs/games/naev/default.nix b/pkgs/games/naev/default.nix new file mode 100644 index 000000000000..abafd7eb36dc --- /dev/null +++ b/pkgs/games/naev/default.nix @@ -0,0 +1,33 @@ +{ fetchurl, stdenv, lua5, SDL, openal, SDL_mixer, libxml2, pkgconfig, libvorbis +, libpng, mesa, makeWrapper }: + +stdenv.mkDerivation { + name = "naev-0.5.0beta1"; + + srcData = fetchurl { + url = http://naev.googlecode.com/files/ndata-0.5.0-beta1; + sha256 = "0pqys1wdlxa336i9gjxfkgnq42xrbvq58ym66y0aa9xm92vr53f6"; + }; + + src = fetchurl { + url = http://naev.googlecode.com/files/naev-0.5.0-beta1.tar.bz2; + sha256 = "1nkwjclfjypgdcfbfqkiidsvi0zfjvkcj0dgnrbj1g11rr6kd3wm"; + }; + + buildInputs = [ SDL lua5 SDL_mixer openal libxml2 pkgconfig libvorbis + libpng mesa makeWrapper ]; + + postInstall = '' + ensureDir $out/share/naev + cp $srcData $out/share/naev/ndata + wrapProgram $out/bin/naev --add-flags $out/share/naev/ndata + ''; + + meta = { + description = "2D action/rpg space game"; + homepage = http://www.naev.org; + license = "GPLv3+"; + maintainers = with stdenv.lib.maintainers; [viric]; + platforms = with stdenv.lib.platforms; linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e843fb89852f..f45f06aacc02 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7263,6 +7263,8 @@ let micropolis = callPackage ../games/micropolis { }; + naev = callPackage ../games/naev { }; + njam = callPackage ../games/njam { }; openttd = callPackage ../games/openttd {