2021-06-17 10:03:18 +02:00
|
|
|
{ lib, stdenv, fetchFromSourcehut
|
|
|
|
, SDL, SDL_image, libGLU, libGL, openal, libvorbis, freealut }:
|
2010-07-08 00:22:19 +02:00
|
|
|
|
2021-06-17 10:03:18 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "blackshades";
|
|
|
|
version = "1.1.1";
|
2010-07-08 00:22:19 +02:00
|
|
|
|
2021-06-17 10:03:18 +02:00
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~cnx";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1gx43hcqahbd21ib8blhzmsrwqfzx4qy7f10ck0mh2zc4bfihz64";
|
|
|
|
};
|
2010-07-08 00:22:19 +02:00
|
|
|
|
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 = ''
|
2021-06-17 10:03:18 +02:00
|
|
|
sed -i -e s,Data/,$out/share/$pname/,g \
|
|
|
|
-e s,Data:,$out/share/$pname/,g \
|
|
|
|
src/*.cpp
|
2010-07-08 00:22:19 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-06-17 10:03:18 +02:00
|
|
|
mkdir -p $out/bin $out/share/doc/$pname
|
|
|
|
cp build/blackshades $out/bin
|
|
|
|
cp -R Data $out/share/$pname
|
|
|
|
cp README.md $out/share/doc/$pname
|
2010-07-08 00:22:19 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2021-06-17 10:03:18 +02:00
|
|
|
homepage = "https://sr.ht/~cnx/blackshades";
|
|
|
|
description = "A psychic bodyguard FPS";
|
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
maintainers = with lib.maintainers; [ McSinyx viric ];
|
2021-01-15 05:31:39 +01:00
|
|
|
platforms = with lib.platforms; linux;
|
2010-07-08 00:22:19 +02:00
|
|
|
};
|
|
|
|
}
|