diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2022-12-28 21:30:30 -0300 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2022-12-29 15:40:23 -0300 |
commit | cd8d465eddf1bd6414aee20cf932628f4ec1db28 (patch) | |
tree | 386f44f276169382a6a2f23fe82de9c0519356d7 /pkgs/applications/emulators | |
parent | 1fc0a0f6c5290ce80b380d1eea3681a04aea1184 (diff) |
mgba: remove `inherit (libsForQt5)` reference on all-packages.nix
According to the issue linked at the end, filling arguments for `callPackage` in all-packages.nix breaks splicing and makes the expressions incompatible with cross-compilation. This issue is more pronounced in the many `inherit (darwin)` calls. However, it is present in similar contexts too. The idea here is not the smartest: it just hides those inheritances from `all-packages.nix` and sends them to the `default.nix` expressions. Issue: https://github.com/NixOS/nixpkgs/issues/204303
Diffstat (limited to 'pkgs/applications/emulators')
-rw-r--r-- | pkgs/applications/emulators/mgba/default.nix | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/pkgs/applications/emulators/mgba/default.nix b/pkgs/applications/emulators/mgba/default.nix index d8aec3aa54c26..ab7a7db942eca 100644 --- a/pkgs/applications/emulators/mgba/default.nix +++ b/pkgs/applications/emulators/mgba/default.nix @@ -3,21 +3,27 @@ , fetchFromGitHub , SDL2 , cmake -, ffmpeg +, ffmpeg_4 , imagemagick , libedit , libelf , libepoxy , libzip -, lua +, lua5_4 , minizip , pkg-config -, qtbase -, qtmultimedia -, qttools -, wrapQtAppsHook +, libsForQt5 }: +let + ffmpeg = ffmpeg_4; + lua = lua5_4; + inherit (libsForQt5) + qtbase + qtmultimedia + qttools + wrapQtAppsHook; +in stdenv.mkDerivation (finalAttrs: { pname = "mgba"; version = "0.10.0"; |