2021-06-17 09:03:18 +01:00
|
|
|
{ lib, stdenv, fetchFromSourcehut
|
2021-07-24 09:28:04 +01:00
|
|
|
, SDL, stb, libGLU, libGL, openal, libvorbis, freealut }:
|
2010-07-07 23:22:19 +01:00
|
|
|
|
2021-06-17 09:03:18 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "blackshades";
|
2021-07-24 09:28:04 +01:00
|
|
|
version = "1.3.1";
|
2010-07-07 23:22:19 +01:00
|
|
|
|
2021-06-17 09:03:18 +01:00
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~cnx";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-07-24 09:28:04 +01:00
|
|
|
sha256 = "0yzp74ynkcp6hh5m4zmvrgx5gwm186hq7p3m7qkww54qdyijb3rv";
|
2021-06-17 09:03:18 +01:00
|
|
|
};
|
2010-07-07 23:22:19 +01:00
|
|
|
|
2021-07-24 09:28:04 +01:00
|
|
|
buildInputs = [ SDL stb libGLU libGL openal libvorbis freealut ];
|
2010-07-07 23:22:19 +01:00
|
|
|
|
2021-07-24 09:28:04 +01:00
|
|
|
postPatch = ''
|
2021-06-17 09:03:18 +01:00
|
|
|
sed -i -e s,Data/,$out/share/$pname/,g \
|
|
|
|
-e s,Data:,$out/share/$pname/,g \
|
|
|
|
src/*.cpp
|
2010-07-07 23:22:19 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-07-24 09:28:04 +01:00
|
|
|
mkdir -p $out/bin $out/share
|
2021-06-17 09:03:18 +01:00
|
|
|
cp build/blackshades $out/bin
|
|
|
|
cp -R Data $out/share/$pname
|
2010-07-07 23:22:19 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2021-06-17 09:03:18 +01: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 04:31:39 +00:00
|
|
|
platforms = with lib.platforms; linux;
|
2010-07-07 23:22:19 +01:00
|
|
|
};
|
|
|
|
}
|