Loading pkgs/by-name/sd/SDL_compat/package.nix +13 −4 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ cmake, darwin, fetchFromGitHub, fetchpatch2, libGLU, libiconv, libX11, Loading Loading @@ -84,10 +85,18 @@ stdenv.mkDerivation (finalAttrs: { ln -s $out/lib/pkgconfig/sdl12_compat.pc $out/lib/pkgconfig/sdl.pc ''; patches = [ # The setup hook scans paths of buildInputs to find SDL related packages and # adds their include and library paths to environment variables. The sdl-config # is patched to use these variables to produce correct flags for compiler. patches = [ ./find-headers.patch ]; ./find-headers.patch # https://github.com/libsdl-org/sdl12-compat/issues/382 (fetchpatch2 { url = "https://github.com/libsdl-org/sdl12-compat/commit/bef8f7412dd44edc4f7e14dc35d3b20399e25496.patch?full_index=1"; hash = "sha256-5kJawjmA8C3uH3OIXHmqQjnIRtoTJtXmm3iLxG3e1qc="; }) ]; setupHook = ./setup-hook.sh; passthru.tests = { Loading Loading
pkgs/by-name/sd/SDL_compat/package.nix +13 −4 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ cmake, darwin, fetchFromGitHub, fetchpatch2, libGLU, libiconv, libX11, Loading Loading @@ -84,10 +85,18 @@ stdenv.mkDerivation (finalAttrs: { ln -s $out/lib/pkgconfig/sdl12_compat.pc $out/lib/pkgconfig/sdl.pc ''; patches = [ # The setup hook scans paths of buildInputs to find SDL related packages and # adds their include and library paths to environment variables. The sdl-config # is patched to use these variables to produce correct flags for compiler. patches = [ ./find-headers.patch ]; ./find-headers.patch # https://github.com/libsdl-org/sdl12-compat/issues/382 (fetchpatch2 { url = "https://github.com/libsdl-org/sdl12-compat/commit/bef8f7412dd44edc4f7e14dc35d3b20399e25496.patch?full_index=1"; hash = "sha256-5kJawjmA8C3uH3OIXHmqQjnIRtoTJtXmm3iLxG3e1qc="; }) ]; setupHook = ./setup-hook.sh; passthru.tests = { Loading