nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 libX11,
7 SDL2,
8 SDL2_mixer,
9 buildOpenGLES ? false,
10}:
11
12stdenv.mkDerivation {
13 pname = "rigel-engine";
14 version = "0-unstable-2024-05-26";
15
16 src = fetchFromGitHub {
17 owner = "lethal-guitar";
18 repo = "RigelEngine";
19 rev = "f05996f9b3ad3b3ea5bb818e49e7977636746343";
20 hash = "sha256-iZ+eYZxnVqHo4vLeZdoV7TO3fWivCfbAf4F57/fU7aY=";
21 fetchSubmodules = true;
22 };
23
24 nativeBuildInputs = [
25 cmake
26 ];
27
28 buildInputs = [
29 libX11
30 SDL2
31 SDL2_mixer
32 ];
33
34 cmakeFlags = [
35 "-Wno-dev"
36 ]
37 ++ lib.optional buildOpenGLES "-DUSE_GL_ES=ON";
38
39 meta = {
40 description = "Modern re-implementation of the classic DOS game Duke Nukem II";
41 homepage = "https://github.com/lethal-guitar/RigelEngine";
42 license = lib.licenses.gpl2Only;
43 maintainers = with lib.maintainers; [ keenanweaver ];
44 mainProgram = "RigelEngine";
45 platforms = lib.platforms.all;
46 };
47}