nixpkgs/pkgs/games/blackshades/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
826 B
Nix
Raw Normal View History

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 }:
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";
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
};
2021-10-02 13:07:28 +02:00
nativeBuildInputs = [ zig ];
buildInputs = [ glfw libGLU libGL openal libsndfile ];
2021-10-02 13:07:28 +02:00
preBuild = ''
export HOME=$TMPDIR
'';
installPhase = ''
2021-10-02 13:07:28 +02:00
zig build -Drelease-fast -Dcpu=baseline --prefix $out install
'';
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;
};
}