eduke32: 20221225 -> 20230926

This commit is contained in:
qubitnano 2023-10-01 14:23:59 -04:00 committed by Emery Hemingway
parent 6d0a1d4ceb
commit 2102e74b4a

View File

@ -1,7 +1,23 @@
{ lib, stdenv, fetchurl, makeWrapper, pkg-config, nasm, makeDesktopItem
, alsa-lib, flac, gtk2, libvorbis, libvpx, libGLU, libGL
, SDL2, SDL2_mixer
, AGL, Cocoa, GLUT, OpenGL
{ lib
, stdenv
, fetchurl
, makeWrapper
, pkg-config
, nasm
, makeDesktopItem
, alsa-lib
, flac
, gtk2
, libvorbis
, libvpx
, libGLU
, libGL
, SDL2
, SDL2_mixer
, AGL
, Cocoa
, GLUT
, OpenGL
}:
let
@ -18,13 +34,13 @@ let
in stdenv.mkDerivation rec {
pname = "eduke32";
version = "20221225";
rev = "10166";
revExtra = "122aee012";
version = "20230926";
rev = "10459";
revExtra = "8feaf6c25";
src = fetchurl {
url = "https://dukeworld.com/eduke32/synthesis/${version}-${rev}-${revExtra}/eduke32_src_${version}-${rev}-${revExtra}.tar.xz";
sha256 = "sha256-3pBYZJqoH7XBkJ537wPwBSmNaZprvOlVtAKTo8EOT3Q=";
hash = "sha256-GQOpDQm2FeaOMyYu9L5zhrM6XFvZAHMAwn1tSK7RCB8=";
};
buildInputs = [
@ -49,7 +65,7 @@ in stdenv.mkDerivation rec {
++ lib.optional (stdenv.hostPlatform.system == "i686-linux") nasm;
postPatch = ''
substituteInPlace source/imgui/src/imgui_impl_sdl.cpp \
substituteInPlace source/imgui/src/imgui_impl_sdl2.cpp \
--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>'