Files
nixpkgs/pkgs/by-name/ri/rigel-engine/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

49 lines
1004 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
libX11,
SDL2,
SDL2_mixer,
buildOpenGLES ? false,
}:
stdenv.mkDerivation {
pname = "rigel-engine";
version = "0-unstable-2024-05-26";
src = fetchFromGitHub {
owner = "lethal-guitar";
repo = "RigelEngine";
rev = "f05996f9b3ad3b3ea5bb818e49e7977636746343";
hash = "sha256-iZ+eYZxnVqHo4vLeZdoV7TO3fWivCfbAf4F57/fU7aY=";
fetchSubmodules = true;
};
nativeBuildInputs = [
cmake
];
buildInputs = [
libX11
SDL2
SDL2_mixer
];
cmakeFlags = [
"-Wno-dev"
(lib.cmakeFeature "CMAKE_POLICY_VERSION_MINIMUM" "3.10")
]
++ lib.optional buildOpenGLES "-DUSE_GL_ES=ON";
meta = {
description = "Modern re-implementation of the classic DOS game Duke Nukem II";
homepage = "https://github.com/lethal-guitar/RigelEngine";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ keenanweaver ];
mainProgram = "RigelEngine";
platforms = lib.platforms.all;
};
}