Skip to content

Commit

Permalink
fs-uae-launcher: fix Qt wrapping issue
Browse files Browse the repository at this point in the history
  • Loading branch information
PanAeon committed Oct 5, 2022
1 parent f6dd0ea commit 48f810b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 10 additions & 5 deletions pkgs/applications/emulators/fs-uae/launcher.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
, stdenv
, fetchurl
, gettext
, makeWrapper
, python3
, wrapQtAppsHook
, fsuae
}:

stdenv.mkDerivation rec {
Expand All @@ -17,8 +18,8 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [
gettext
makeWrapper
python3
wrapQtAppsHook
];

buildInputs = with python3.pkgs; [
Expand All @@ -29,15 +30,19 @@ stdenv.mkDerivation rec {

makeFlags = [ "prefix=$(out)" ];

postInstall = ''
wrapProgram $out/bin/fs-uae-launcher --set PYTHONPATH "$PYTHONPATH"
dontWrapQtApps = true;

preFixup = ''
wrapQtApp "$out/bin/fs-uae-launcher" --set PYTHONPATH "$PYTHONPATH" \
--prefix PATH : ${lib.makeBinPath [ fsuae ]}
'';

meta = with lib; {
homepage = "https://fs-uae.net";
description = "Graphical front-end for the FS-UAE emulator";
license = lib.licenses.gpl2Plus;
license = licenses.gpl2Plus;
maintainers = with maintainers; [ sander AndersonTorres ];
platforms = [ "i686-linux" "x86_64-linux" ];
};
}

2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1510,7 +1510,7 @@ with pkgs;

fsuae = callPackage ../applications/emulators/fs-uae { };

fsuae-launcher = callPackage ../applications/emulators/fs-uae/launcher.nix { };
fsuae-launcher = libsForQt5.callPackage ../applications/emulators/fs-uae/launcher.nix { };

fuse-emulator = callPackage ../applications/emulators/fuse-emulator {};

Expand Down

0 comments on commit 48f810b

Please sign in to comment.