Loading pkgs/applications/emulators/dolphin-emu/default.nix +7 −13 Original line number Diff line number Diff line Loading @@ -16,13 +16,14 @@ , libevdev , libGL , libiconv , libpng , libpulseaudio , libspng , libusb1 , libXdmcp , libXext , libXrandr , mbedtls_2 , mgba , miniupnpc , minizip-ng , openal Loading Loading @@ -53,22 +54,16 @@ stdenv.mkDerivation rec { pname = "dolphin-emu"; version = "5.0-17995"; version = "5.0-18498"; src = fetchFromGitHub { owner = "dolphin-emu"; repo = "dolphin"; rev = "8bad821019721b9b72701b495da95656ace5fea5"; sha256 = "sha256-uxHzn+tXRBr11OPpZ4ELBw7DTJH4mnqUBOeyPlXNAh8="; rev = "46b99671d9158e0ca840c1d8ef249db0f321ced7"; sha256 = "sha256-K+OF8o8I1XDLQQcsWC8p8jUuWeb+RoHlBG3cEZ1aWIU="; fetchSubmodules = true; }; patches = [ # On x86_64-darwin CMake reportedly does not work without this in some cases. # See https://github.com/NixOS/nixpkgs/pull/190373#issuecomment-1241310765 ./minizip-external-missing-include.patch ]; nativeBuildInputs = [ cmake pkg-config Loading @@ -85,8 +80,8 @@ stdenv.mkDerivation rec { hidapi libGL libiconv libpng libpulseaudio libspng libusb1 libXdmcp mbedtls_2 Loading @@ -105,6 +100,7 @@ stdenv.mkDerivation rec { libevdev libXext libXrandr mgba # Derivation doesn't support Darwin udev vulkan-loader ] ++ lib.optionals stdenv.isDarwin [ Loading Loading @@ -137,8 +133,6 @@ stdenv.mkDerivation rec { # https://bugs.dolphin-emu.org/issues/11807 # The .desktop file should already set this, but Dolphin may be launched in other ways "--set QT_QPA_PLATFORM xcb" # https://bugs.dolphin-emu.org/issues/12913 "--set QT_XCB_NO_XI2 1" ]; # https://github.com/NixOS/nixpkgs/issues/201254 Loading pkgs/applications/emulators/dolphin-emu/minizip-external-missing-include.patchdeleted 100644 → 0 +0 −18 Original line number Diff line number Diff line commit 5e0cb8066fb1653399c54e93e42375295c2562bd Author: Ivar Scholten <ivar.scholten@protonmail.com> Date: Fri Sep 9 14:27:55 2022 +0200 Externals/minizip: add missing include to CheckFunctionExists diff --git a/Externals/minizip/CMakeLists.txt b/Externals/minizip/CMakeLists.txt index c3d7c5512e..f59f8b295c 100644 --- a/Externals/minizip/CMakeLists.txt +++ b/Externals/minizip/CMakeLists.txt @@ -60,6 +60,7 @@ if (HAVE_INTTYPES_H) target_compile_definitions(minizip PRIVATE HAVE_INTTYPES_H) endif() +include(CheckFunctionExists) check_function_exists(fseeko HAVE_FSEEKO) if (NOT HAVE_FSEEKO) target_compile_definitions(minizip PRIVATE NO_FSEEKO) Loading
pkgs/applications/emulators/dolphin-emu/default.nix +7 −13 Original line number Diff line number Diff line Loading @@ -16,13 +16,14 @@ , libevdev , libGL , libiconv , libpng , libpulseaudio , libspng , libusb1 , libXdmcp , libXext , libXrandr , mbedtls_2 , mgba , miniupnpc , minizip-ng , openal Loading Loading @@ -53,22 +54,16 @@ stdenv.mkDerivation rec { pname = "dolphin-emu"; version = "5.0-17995"; version = "5.0-18498"; src = fetchFromGitHub { owner = "dolphin-emu"; repo = "dolphin"; rev = "8bad821019721b9b72701b495da95656ace5fea5"; sha256 = "sha256-uxHzn+tXRBr11OPpZ4ELBw7DTJH4mnqUBOeyPlXNAh8="; rev = "46b99671d9158e0ca840c1d8ef249db0f321ced7"; sha256 = "sha256-K+OF8o8I1XDLQQcsWC8p8jUuWeb+RoHlBG3cEZ1aWIU="; fetchSubmodules = true; }; patches = [ # On x86_64-darwin CMake reportedly does not work without this in some cases. # See https://github.com/NixOS/nixpkgs/pull/190373#issuecomment-1241310765 ./minizip-external-missing-include.patch ]; nativeBuildInputs = [ cmake pkg-config Loading @@ -85,8 +80,8 @@ stdenv.mkDerivation rec { hidapi libGL libiconv libpng libpulseaudio libspng libusb1 libXdmcp mbedtls_2 Loading @@ -105,6 +100,7 @@ stdenv.mkDerivation rec { libevdev libXext libXrandr mgba # Derivation doesn't support Darwin udev vulkan-loader ] ++ lib.optionals stdenv.isDarwin [ Loading Loading @@ -137,8 +133,6 @@ stdenv.mkDerivation rec { # https://bugs.dolphin-emu.org/issues/11807 # The .desktop file should already set this, but Dolphin may be launched in other ways "--set QT_QPA_PLATFORM xcb" # https://bugs.dolphin-emu.org/issues/12913 "--set QT_XCB_NO_XI2 1" ]; # https://github.com/NixOS/nixpkgs/issues/201254 Loading
pkgs/applications/emulators/dolphin-emu/minizip-external-missing-include.patchdeleted 100644 → 0 +0 −18 Original line number Diff line number Diff line commit 5e0cb8066fb1653399c54e93e42375295c2562bd Author: Ivar Scholten <ivar.scholten@protonmail.com> Date: Fri Sep 9 14:27:55 2022 +0200 Externals/minizip: add missing include to CheckFunctionExists diff --git a/Externals/minizip/CMakeLists.txt b/Externals/minizip/CMakeLists.txt index c3d7c5512e..f59f8b295c 100644 --- a/Externals/minizip/CMakeLists.txt +++ b/Externals/minizip/CMakeLists.txt @@ -60,6 +60,7 @@ if (HAVE_INTTYPES_H) target_compile_definitions(minizip PRIVATE HAVE_INTTYPES_H) endif() +include(CheckFunctionExists) check_function_exists(fseeko HAVE_FSEEKO) if (NOT HAVE_FSEEKO) target_compile_definitions(minizip PRIVATE NO_FSEEKO)