Commit 1f2b8bb2 authored by Anderson Torres's avatar Anderson Torres
Browse files

fceux: select Qt version

parent d9de98d7
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -11,13 +11,24 @@
  minizip,
  pkg-config,
  qt5,
  qt6,
  stdenv,
  x264,
  # Configurable options
  ___qtVersion ? "5",
}:

let
  inherit (qt5) qttools wrapQtAppsHook;
  qtVersionDictionary = {
    "5" = qt5;
    "6" = qt6;
  };
  inherit (qtVersionDictionary.${___qtVersion}) qttools wrapQtAppsHook;
in
assert lib.elem ___qtVersion [
  "5"
  "6"
];
stdenv.mkDerivation (finalAttrs: {
  pname = "fceux";
  version = "2.6.6-unstable-2024-01-19";
+3 −0
Original line number Diff line number Diff line
@@ -2519,6 +2519,9 @@ with pkgs;
    inherit (darwin.apple_sdk_11_0.frameworks) AudioUnit Carbon Cocoa;
  };
  fceux-qt5 = fceux.override { ___qtVersion = "5"; };
  fceux-qt6 = fceux.override { ___qtVersion = "6"; };
  firebird-emu = libsForQt5.callPackage ../applications/emulators/firebird-emu { };
  flycast = callPackage ../applications/emulators/flycast { };