2019-11-10 17:44:34 +01:00
|
|
|
{stdenv, fetchsvn, SDL, libGLU, libGL, openal, libvorbis, freealut, SDL_image}:
|
2010-07-08 00:22:19 +02:00
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2010-07-08 00:22:19 +02:00
|
|
|
name = "blackshades-svn-110";
|
|
|
|
src = fetchsvn {
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "svn://svn.icculus.org/blackshades/trunk";
|
2018-11-07 09:41:55 +01:00
|
|
|
rev = "110";
|
2010-07-08 00:22:19 +02:00
|
|
|
sha256 = "0kbrh1dympk8scjxr6av24qs2bffz44l8qmw2m5gyqf4g3rxf6ra";
|
|
|
|
};
|
|
|
|
|
|
|
|
NIX_LDFLAGS = "-lSDL_image";
|
|
|
|
|
2019-11-10 17:44:34 +01:00
|
|
|
buildInputs = [ SDL SDL_image libGLU libGL openal libvorbis freealut ];
|
2010-07-08 00:22:19 +02:00
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e s,Data/,$out/opt/$name/Data/,g \
|
|
|
|
-e s,Data:,$out/opt/$name/Data/,g \
|
|
|
|
Source/*.cpp
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/bin $out/opt/$name
|
2010-07-08 00:22:19 +02:00
|
|
|
cp objs/blackshades $out/bin
|
|
|
|
cp -R Data IF* Readme $out/opt/$name/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://icculus.org/blackshades/";
|
2010-07-08 00:22:19 +02:00
|
|
|
description = "Protect the VIP";
|
2014-11-06 01:44:33 +01:00
|
|
|
license = stdenv.lib.licenses.free;
|
2010-07-08 00:22:19 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|