Change:
"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>

Discussion:
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