summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorOPNA2608 <christoph.neidahl@gmail.com>2022-02-22 22:06:48 +0100
committerOPNA2608 <christoph.neidahl@gmail.com>2022-02-22 22:06:48 +0100
commit6f7d5cebf2d4217ffc12f2d326c2d5785390ae4c (patch)
tree120ccc457b92927232411db9f50ece5eed9cefe5 /pkgs
parent3e3cb9b7c98854bb3c8a88179bfa972753978a3c (diff)
downloadnixpkgs-6f7d5cebf2d4217ffc12f2d326c2d5785390ae4c.tar
nixpkgs-6f7d5cebf2d4217ffc12f2d326c2d5785390ae4c.tar.gz
nixpkgs-6f7d5cebf2d4217ffc12f2d326c2d5785390ae4c.tar.bz2
nixpkgs-6f7d5cebf2d4217ffc12f2d326c2d5785390ae4c.tar.lz
nixpkgs-6f7d5cebf2d4217ffc12f2d326c2d5785390ae4c.tar.xz
nixpkgs-6f7d5cebf2d4217ffc12f2d326c2d5785390ae4c.tar.zst
nixpkgs-6f7d5cebf2d4217ffc12f2d326c2d5785390ae4c.zip
mednaffe: Enable for Darwin, fix wrapping
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/emulators/mednaffe/default.nix10
1 files changed, 7 insertions, 3 deletions
diff --git a/pkgs/applications/emulators/mednaffe/default.nix b/pkgs/applications/emulators/mednaffe/default.nix
index 4874d5efee7..32bb06b2704 100644
--- a/pkgs/applications/emulators/mednaffe/default.nix
+++ b/pkgs/applications/emulators/mednaffe/default.nix
@@ -20,11 +20,15 @@ stdenv.mkDerivation rec {
   };
 
   nativeBuildInputs = [ autoreconfHook pkg-config wrapGAppsHook ];
+
   buildInputs = [ gtk3 mednafen ];
 
-  postInstall = ''
-    wrapProgram $out/bin/mednaffe \
+  enableParallelBuilding = true;
+
+  preFixup = ''
+    gappsWrapperArgs+=(
       --prefix PATH ':' "${mednafen}/bin"
+    )
    '';
 
   meta = with lib; {
@@ -32,6 +36,6 @@ stdenv.mkDerivation rec {
     homepage = "https://github.com/AmatCoder/mednaffe";
     license = licenses.gpl3Plus;
     maintainers = with maintainers; [ sheenobu yana AndersonTorres ];
-    platforms = platforms.linux;
+    platforms = platforms.unix;
   };
 }