about summary refs log tree commit diff
path: root/pkgs/applications/emulators/86box
diff options
context:
space:
mode:
authorlucasew <lucas59356@gmail.com>2024-03-24 11:12:18 -0300
committerlucasew <lucas59356@gmail.com>2024-03-26 08:50:58 -0300
commitcae20d2bf589c4e7a76e5dc863ee45dc03a60b91 (patch)
treed41eb2a5412713135eac799beb70005658a4bf26 /pkgs/applications/emulators/86box
parent3199d631af2cdbec5bfd90d863c25ced722d03ba (diff)
_86Box: simplify wrapping logic
Signed-off-by: lucasew <lucas59356@gmail.com>
Diffstat (limited to 'pkgs/applications/emulators/86box')
-rw-r--r--pkgs/applications/emulators/86box/default.nix12
1 files changed, 3 insertions, 9 deletions
diff --git a/pkgs/applications/emulators/86box/default.nix b/pkgs/applications/emulators/86box/default.nix
index 43b5dfae541e4..d1a414fc07928 100644
--- a/pkgs/applications/emulators/86box/default.nix
+++ b/pkgs/applications/emulators/86box/default.nix
@@ -59,21 +59,15 @@ stdenv.mkDerivation (finalAttrs: {
 
   # Some libraries are loaded dynamically, but QLibrary doesn't seem to search
   # the runpath, so use a wrapper instead.
-  postFixup = let
+  preFixup = let
     libPath = lib.makeLibraryPath ([
       libpcap
     ] ++ lib.optional unfreeEnableDiscord discord-gamesdk);
     libPathVar = if stdenv.isDarwin then "DYLD_LIBRARY_PATH" else "LD_LIBRARY_PATH";
-  in
-  ''
-    wrapProgram $out/bin/86Box \
-      "''${qtWrapperArgs[@]}" \
-      --prefix ${libPathVar} : "${libPath}"
+  in ''
+    makeWrapperArgs+=(--prefix ${libPathVar} : "${libPath}")
   '';
 
-  # Do not wrap twice.
-  dontWrapQtApps = true;
-
   meta = with lib; {
     description = "Emulator of x86-based machines based on PCem.";
     mainProgram = "86Box";