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