3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/games/blackshades/default.nix

35 lines
913 B
Nix
Raw Normal View History

2021-01-15 04:31:39 +00:00
{lib, stdenv, fetchsvn, SDL, libGLU, libGL, openal, libvorbis, freealut, SDL_image}:
2019-08-13 22:52:01 +01:00
stdenv.mkDerivation {
name = "blackshades-svn-110";
src = fetchsvn {
url = "svn://svn.icculus.org/blackshades/trunk";
rev = "110";
sha256 = "0kbrh1dympk8scjxr6av24qs2bffz44l8qmw2m5gyqf4g3rxf6ra";
};
NIX_LDFLAGS = "-lSDL_image";
2019-11-10 16:44:34 +00:00
buildInputs = [ SDL SDL_image libGLU libGL 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 = ''
mkdir -p $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";
2021-01-15 04:31:39 +00:00
license = lib.licenses.free;
maintainers = with lib.maintainers; [viric];
platforms = with lib.platforms; linux;
};
}