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