python312Packages.materialx: 1.39.1 -> 1.38.10 (#380449)
[NixPkgs.git] / pkgs / by-name / ri / rigel-engine / package.nix
blob74b0e08d35f52cb3080ac4ef14668cf1d8fe1137
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   cmake,
6   SDL2,
7   SDL2_mixer,
8   buildOpenGLES ? false,
9 }:
11 stdenv.mkDerivation {
12   pname = "rigel-engine";
13   version = "0-unstable-2024-05-26";
15   src = fetchFromGitHub {
16     owner = "lethal-guitar";
17     repo = "RigelEngine";
18     rev = "f05996f9b3ad3b3ea5bb818e49e7977636746343";
19     hash = "sha256-iZ+eYZxnVqHo4vLeZdoV7TO3fWivCfbAf4F57/fU7aY=";
20     fetchSubmodules = true;
21   };
23   nativeBuildInputs = [
24     cmake
25   ];
27   buildInputs = [
28     SDL2
29     SDL2_mixer
30   ];
32   cmakeFlags = [
33     "-Wno-dev"
34   ] ++ lib.optional buildOpenGLES "-DUSE_GL_ES=ON";
36   meta = {
37     description = "Modern re-implementation of the classic DOS game Duke Nukem II";
38     homepage = "https://github.com/lethal-guitar/RigelEngine";
39     license = lib.licenses.gpl2Only;
40     maintainers = with lib.maintainers; [ keenanweaver ];
41     mainProgram = "RigelEngine";
42     platforms = lib.platforms.all;
43   };