Change:
Package name: Latest released version: <!-- Search your package here: --- Current version on the unstable channel: Current version on the stable/release channel: <!-- Type the name of your package and try to find an open pull request for the package If you find an open pull request, you can review it! There's a high chance that you'll have the new version right away while helping the community! --- Notify maintainers <!-- If the result shows no maintainers, tag the person that last updated the package. -- Note for maintainers: Please tag this issue in your PR. I realized through the , which refers to the source code of the following repo: "See for more details.", that eduke32 seems to support Shadow Warrior, which the confirms with: "Shadow Warrior (Note: Supported by VoidSW ONLY, not EDuke32 itself!)". Furthermore it seems that this "EDuke32's VoidSW launcher" (to run Shadow Warrior) could be build with a eduke32 build flag, as Gentoo did it, for example: -flag name="voidsw" Enable support for Shadow Warrior (Classic) through VoidSW In addition to the apparently uninteresting project: , this could be another option to start Shadow Warrior emulated under NixOS, or is there anything against it? What do you think?
Updated in to version

Discussion:
{ lib , stdenv <del> , fetchurl </del> <ins> , fetchFromGitLab </ins> , makeWrapper , pkg-config , nasm , makeDesktopItem <ins> , copyDesktopItems </ins> , alsa-lib , flac , gtk2 , libvorbis , libvpx <del> , libGLU </del> , libGL , SDL2 , SDL2_mixer

, Cocoa , GLUT , OpenGL <ins> , graphicsmagick </ins> }: let <del> desktopItem = makeDesktopItem { name = "eduke32"; exec = "@out@/bin/${wrapper}"; comment = "Duke Nukem 3D port"; desktopName = "Enhanced Duke Nukem 3D"; genericName = "Duke Nukem 3D port"; categories = [ "Game" ]; }; </del> wrapper = "eduke32-wrapper"; <ins> swWrapper = "voidsw-wrapper"; </ins> <del> in stdenv.mkDerivation rec { </del> <ins> in stdenv.mkDerivation (finalAttrs: { </ins> pname = "eduke32"; <del> version = "20230926"; rev = "10459"; revExtra = "8feaf6c25"; src = fetchurl { url = "https://dukeworld.com/eduke32/synthesis/${version}-${rev}-${revExtra}/eduke32_src_${version}-${rev}-${revExtra}.tar.xz"; hash = "sha256-GQOpDQm2FeaOMyYu9L5zhrM6XFvZAHMAwn1tSK7RCB8="; </del> <ins> version = "0-unstable-2024-02-17"; src = fetchFromGitLab { domain = "voidpoint.io"; owner = "terminx"; repo = "eduke32"; rev = "8afa42e388e0434b38979fdddc763363717a2727"; hash = "sha256-dyZ4JtDBxsTDe9uQDWxJe7M74X7m+5wpEHm+i+s9hwo="; </ins> }; buildInputs = [

alsa-lib gtk2 libGL <del> libGLU </del> ] ++ lib.optionals stdenv.isDarwin [ AGL Cocoa

OpenGL ]; <del> nativeBuildInputs = [ makeWrapper pkg-config ] ++ lib.optional (stdenv.hostPlatform.system == "i686-linux") nasm; </del> <ins> nativeBuildInputs = [ makeWrapper pkg-config copyDesktopItems graphicsmagick ] ++ lib.optionals (stdenv.hostPlatform.system == "i686-linux") [ nasm ]; </ins> postPatch = '' substituteInPlace source/imgui/src/imgui_impl_sdl2.cpp  <del> --replace '#include <SDL.h>' '#include <SDL2/SDL.h>'  --replace '#include <SDL_syswm.h>' '#include <SDL2/SDL_syswm.h>'  --replace '#include <SDL_vulkan.h>' '#include <SDL2/SDL_vulkan.h>' </del> <ins> --replace-fail '#include <SDL.h>' '#include <SDL2/SDL.h>'  --replace-fail '#include <SDL_syswm.h>' '#include <SDL2/SDL_syswm.h>'  --replace-fail '#include <SDL_vulkan.h>' '#include <SDL2/SDL_vulkan.h>' </ins> '' + lib.optionalString stdenv.isLinux '' <del> substituteInPlace source/build/src/glbuild.cpp  --replace libGLU.so ${libGLU}/lib/libGLU.so </del> for f in glad.c glad_wgl.c ; do substituteInPlace source/glad/src/$f  <del> --replace libGL.so ${libGL}/lib/libGL.so </del> <ins> --replace-fail libGL.so ${libGL}/lib/libGL.so </ins> done '';

"LTO=0" ]; <ins> buildFlags = [ "duke3d" "sw" ]; desktopItems = [ (makeDesktopItem { name = "eduke32"; icon = "eduke32"; exec = "${wrapper}"; comment = "Duke Nukem 3D port"; desktopName = "Enhanced Duke Nukem 3D"; genericName = "Duke Nukem 3D port"; categories = [ "Game" ]; }) (makeDesktopItem { name = "voidsw"; icon = "voidsw"; exec = "${swWrapper}"; comment = "Shadow Warrior eduke32 source port"; desktopName = "VoidSW"; genericName = "Shadow Warrior source port"; categories = [ "Game" ]; }) ]; </ins> enableParallelBuilding = true; installPhase = '' runHook preInstall <del> install -Dm755 -t $out/bin eduke32 mapster32 </del> <ins> install -Dm755 -t $out/bin eduke32 mapster32 voidsw wangulator </ins> '' + lib.optionalString stdenv.isLinux '' makeWrapper $out/bin/eduke32 $out/bin/${wrapper}  --set-default EDUKE32_DATA_DIR /var/lib/games/eduke32  --add-flags '-g "$EDUKE32_DATA_DIR/DUKE3D.GRP"' <del> cp -rv ${desktopItem}/share $out substituteInPlace $out/share/applications/eduke32.desktop  --subst-var out </del> <ins> makeWrapper $out/bin/voidsw $out/bin/${swWrapper}  --set-default EDUKE32_DATA_DIR /var/lib/games/eduke32  --add-flags '-g"$EDUKE32_DATA_DIR/SW.GRP"' mkdir -p $out/share/icons/hicolor/scalable/apps gm convert "./source/duke3d/rsrc/game_icon.ico[10]" $out/share/icons/hicolor/scalable/apps/eduke32.png install -Dm644 ./source/sw/rsrc/game_icon.svg $out/share/icons/hicolor/scalable/apps/voidsw.svg </ins> '' + lib.optionalString stdenv.isDarwin '' mkdir -p $out/Applications/EDuke32.app/Contents/MacOS mkdir -p $out/Applications/Mapster32.app/Contents/MacOS <ins> mkdir -p $out/Applications/VoidSW.app/Contents/MacOS mkdir -p $out/Applications/Wangulator.app/Contents/MacOS </ins> cp -r platform/Apple/bundles/EDuke32.app/* $out/Applications/EDuke32.app/ cp -r platform/Apple/bundles/Mapster32.app/* $out/Applications/Mapster32.app/ <ins> cp -r platform/Apple/bundles/VoidSW.app/* $out/Applications/VoidSW.app/ cp -r platform/Apple/bundles/Wangulator.app/* $out/Applications/Wangulator.app/ </ins> ln -sf $out/bin/eduke32 $out/Applications/EDuke32.app/Contents/MacOS/eduke32 ln -sf $out/bin/mapster32 $out/Applications/Mapster32.app/Contents/MacOS/mapster32 <ins> ln -sf $out/bin/voidsw $out/Applications/VoidSW.app/Contents/MacOS/voidsw ln -sf $out/bin/wangulator $out/Applications/Wangulator.app/Contents/MacOS/wangulator </ins> '' + '' runHook postInstall ''; <del> meta = with lib; { </del> <ins> meta = { </ins> description = "Enhanched port of Duke Nukem 3D for various platforms"; homepage = "http://eduke32.com"; <del> license = licenses.gpl2Plus; maintainers = with maintainers; [ mikroskeem sander ]; platforms = platforms.all; </del> <ins> license = with lib.licenses; [ gpl2Plus ]; maintainers = with lib.maintainers; [ mikroskeem sander ]; platforms = lib.platforms.all; </ins> }; <del> } </del> <ins> }) </ins>