3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/games/blackshades/default.nix

35 lines
826 B
Nix
Raw Normal View History

2021-06-17 09:03:18 +01:00
{ lib, stdenv, fetchFromSourcehut
2021-10-02 12:07:28 +01:00
, zig, glfw, libGLU, libGL, openal, libsndfile }:
2021-06-17 09:03:18 +01:00
stdenv.mkDerivation rec {
pname = "blackshades";
2021-10-02 12:07:28 +01:00
version = "2.4.7";
2021-06-17 09:03:18 +01:00
src = fetchFromSourcehut {
owner = "~cnx";
repo = pname;
rev = version;
2021-10-02 12:07:28 +01:00
fetchSubmodules = true;
sha256 = "sha256-hvJwWUUmGeb7MQgKe79cPS2ckPZ9z0Yc5S9IiwuXPD8=";
2021-06-17 09:03:18 +01:00
};
2021-10-02 12:07:28 +01:00
nativeBuildInputs = [ zig ];
buildInputs = [ glfw libGLU libGL openal libsndfile ];
2021-10-02 12:07:28 +01:00
preBuild = ''
export HOME=$TMPDIR
'';
installPhase = ''
2021-10-02 12:07:28 +01:00
zig build -Drelease-fast -Dcpu=baseline --prefix $out install
'';
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;
};
}