Author: viric Date: 2010-07-07 22:22:19 +0000 (Wed, 07 Jul 2010) New Revision: 22520
You can view the changes in this commit at: https://svn.nixos.org/viewvc/nix?rev=22520&view=rev Added: nixpkgs/trunk/pkgs/games/blackshades/ nixpkgs/trunk/pkgs/games/blackshades/default.nix Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix Log: Adding Black Shades Changes: Added: nixpkgs/trunk/pkgs/games/blackshades/default.nix =================================================================== --- nixpkgs/trunk/pkgs/games/blackshades/default.nix (rev 0) +++ nixpkgs/trunk/pkgs/games/blackshades/default.nix 2010-07-07 22:22:19 UTC (rev 22520) @@ -0,0 +1,34 @@ +{stdenv, fetchsvn, SDL, mesa, openal, libvorbis, freealut, SDL_image}: + +stdenv.mkDerivation rec { + name = "blackshades-svn-110"; + src = fetchsvn { + url = svn://svn.icculus.org/blackshades/trunk; + rev = 110; + sha256 = "0kbrh1dympk8scjxr6av24qs2bffz44l8qmw2m5gyqf4g3rxf6ra"; + }; + + NIX_LDFLAGS = "-lSDL_image"; + + buildInputs = [ SDL SDL_image mesa openal libvorbis freealut ]; + + patchPhase = '' + sed -i -e s,Data/,$out/opt/$name/Data/,g \ + -e s,Data:,$out/opt/$name/Data/,g \ + Source/*.cpp + ''; + + installPhase = '' + ensureDir $out/bin $out/opt/$name + cp objs/blackshades $out/bin + cp -R Data IF* Readme $out/opt/$name/ + ''; + + meta = { + homepage = http://icculus.org/blackshades/; + description = "Protect the VIP"; + license = "free"; + maintainers = with stdenv.lib.maintainers; [viric]; + platforms = with stdenv.lib.platforms; linux; + }; +} Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix =================================================================== --- nixpkgs/trunk/pkgs/top-level/all-packages.nix 2010-07-07 21:44:09 UTC (rev 22519) +++ nixpkgs/trunk/pkgs/top-level/all-packages.nix 2010-07-07 22:22:19 UTC (rev 22520) @@ -9191,6 +9191,10 @@ inherit fetchurl stdenv SDL SDL_image SDL_mixer SDL_ttf guile gettext; }; + blackshades = import ../games/blackshades { + inherit fetchsvn stdenv libvorbis SDL mesa openal freealut SDL_image; + }; + bsdgames = import ../games/bsdgames { inherit fetchurl stdenv ncurses openssl flex bison miscfiles; }; _______________________________________________ nix-commits mailing list [email protected] http://mail.cs.uu.nl/mailman/listinfo/nix-commits
