Commit d0f6f51c authored by Weijia Wang's avatar Weijia Wang
Browse files

dolphin-emu: fix build on x86_64-darwin

parent 854b6b28
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -154,13 +154,6 @@ stdenv.mkDerivation rec {
    "--set QT_QPA_PLATFORM xcb"
  ];

  # Use nix-provided libraries instead of submodules
  postPatch = lib.optionalString stdenv.isDarwin ''
    substituteInPlace CMakeLists.txt \
      --replace-fail "if(NOT APPLE)" "if(true)" \
      --replace-fail "if(LIBUSB_FOUND AND NOT APPLE)" "if(LIBUSB_FOUND)"
  '';

  postInstall = lib.optionalString stdenv.hostPlatform.isLinux ''
    install -D $src/Data/51-usb-device.rules $out/etc/udev/rules.d/51-usb-device.rules
  '' + lib.optionalString stdenv.hostPlatform.isDarwin ''
+1 −0
Original line number Diff line number Diff line
@@ -2826,6 +2826,7 @@ with pkgs;
  ### APPLICATIONS/EMULATORS/DOLPHIN-EMU
  dolphin-emu = qt6Packages.callPackage ../applications/emulators/dolphin-emu {
    stdenv = if stdenv.isDarwin then overrideSDK stdenv "11.0" else stdenv;
    inherit (darwin.apple_sdk_11_0.frameworks) CoreBluetooth ForceFeedback IOBluetooth IOKit OpenGL VideoToolbox;
    inherit (darwin) moltenvk;
  };