diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2010-07-07 22:22:19 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2010-07-07 22:22:19 +0000 |
commit | f3a813ae77e2e6214c50b8c9e0c90083955af3fe (patch) | |
tree | 356898acb75d30ca9ec357a822150ce09eb3fa13 /pkgs/games/blackshades | |
parent | 6b701731ecb4623c924889dfd1cb896959a83269 (diff) |
Adding Black Shades
svn path=/nixpkgs/trunk/; revision=22520
Diffstat (limited to 'pkgs/games/blackshades')
-rw-r--r-- | pkgs/games/blackshades/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/games/blackshades/default.nix b/pkgs/games/blackshades/default.nix new file mode 100644 index 0000000000000..8a79326bdead5 --- /dev/null +++ b/pkgs/games/blackshades/default.nix @@ -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; + }; +} |