2021-06-17 10:03:18 +02:00
|
|
|
{ lib, stdenv, fetchFromSourcehut
|
2021-10-02 13:07:28 +02:00
|
|
|
, zig, glfw, libGLU, libGL, openal, libsndfile }:
|
2010-07-08 00:22:19 +02:00
|
|
|
|
2021-06-17 10:03:18 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "blackshades";
|
2022-02-23 11:35:52 +01:00
|
|
|
version = "2.4.9";
|
2010-07-08 00:22:19 +02:00
|
|
|
|
2021-06-17 10:03:18 +02:00
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~cnx";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-10-02 13:07:28 +02:00
|
|
|
fetchSubmodules = true;
|
2022-02-23 11:35:52 +01:00
|
|
|
sha256 = "sha256-Hg+VcWI28GzY/CPm1lUftP0RGztOnzizrKJQVTmeJ9I=";
|
2021-06-17 10:03:18 +02:00
|
|
|
};
|
2010-07-08 00:22:19 +02:00
|
|
|
|
2021-10-02 13:07:28 +02:00
|
|
|
nativeBuildInputs = [ zig ];
|
|
|
|
buildInputs = [ glfw libGLU libGL openal libsndfile ];
|
2010-07-08 00:22:19 +02:00
|
|
|
|
2021-10-02 13:07:28 +02:00
|
|
|
preBuild = ''
|
|
|
|
export HOME=$TMPDIR
|
2010-07-08 00:22:19 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-10-02 13:07:28 +02:00
|
|
|
zig build -Drelease-fast -Dcpu=baseline --prefix $out install
|
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
|
|
|
};
|
|
|
|
}
|