diff options
author | vitalii <vitalii.voloshyn@gmail.com> | 2022-10-03 13:24:42 +0300 |
---|---|---|
committer | vitalii <vitalii.voloshyn@gmail.com> | 2022-10-05 14:19:11 +0300 |
commit | 48f810bd79db6ea3d8749f040244ab6da7fbf1e0 (patch) | |
tree | 64fc1a158df2fda6f0b5c10993f60a9f41d7d5de /pkgs/applications/emulators/fs-uae | |
parent | f6dd0ea8b44014f62a100ce851a75719ba32dc45 (diff) |
fs-uae-launcher: fix Qt wrapping issue
Fixes #161716
Diffstat (limited to 'pkgs/applications/emulators/fs-uae')
-rw-r--r-- | pkgs/applications/emulators/fs-uae/launcher.nix | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/pkgs/applications/emulators/fs-uae/launcher.nix b/pkgs/applications/emulators/fs-uae/launcher.nix index afe12aab0c83..e3f390034038 100644 --- a/pkgs/applications/emulators/fs-uae/launcher.nix +++ b/pkgs/applications/emulators/fs-uae/launcher.nix @@ -2,8 +2,9 @@ , stdenv , fetchurl , gettext -, makeWrapper , python3 +, wrapQtAppsHook +, fsuae }: stdenv.mkDerivation rec { @@ -17,8 +18,8 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ gettext - makeWrapper python3 + wrapQtAppsHook ]; buildInputs = with python3.pkgs; [ @@ -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" ]; }; } + |