depot/third_party/nixpkgs/pkgs/games/blackshades/default.nix
Default email 4cb23072fc Project import generated by Copybara.
GitOrigin-RevId: 6d8215281b2f87a5af9ed7425a26ac575da0438f
2022-01-20 00:45:15 +01:00

34 lines
826 B
Nix

{ lib, stdenv, fetchFromSourcehut
, zig, glfw, libGLU, libGL, openal, libsndfile }:
stdenv.mkDerivation rec {
pname = "blackshades";
version = "2.4.7";
src = fetchFromSourcehut {
owner = "~cnx";
repo = pname;
rev = version;
fetchSubmodules = true;
sha256 = "sha256-hvJwWUUmGeb7MQgKe79cPS2ckPZ9z0Yc5S9IiwuXPD8=";
};
nativeBuildInputs = [ zig ];
buildInputs = [ glfw libGLU libGL openal libsndfile ];
preBuild = ''
export HOME=$TMPDIR
'';
installPhase = ''
zig build -Drelease-fast -Dcpu=baseline --prefix $out install
'';
meta = {
homepage = "https://sr.ht/~cnx/blackshades";
description = "A psychic bodyguard FPS";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ McSinyx viric ];
platforms = with lib.platforms; linux;
};
}