mednafen: Fix on Darwin

OPNA2608 3e3cb9b7 23c7839a

+15 -7
+12 -6
pkgs/applications/emulators/mednafen/default.nix
··· 15 15 , libsndfile 16 16 , pkg-config 17 17 , zlib 18 + , libiconv 18 19 }: 19 20 20 21 stdenv.mkDerivation rec { ··· 31 32 buildInputs = [ 32 33 SDL2 33 34 SDL2_net 34 - alsa-lib 35 35 flac 36 36 freeglut 37 - libGL 38 - libGLU 39 - libX11 40 37 libcdio 41 38 libjack2 42 39 libsamplerate 43 40 libsndfile 44 41 zlib 42 + ] ++ lib.optionals stdenv.hostPlatform.isLinux [ 43 + alsa-lib 44 + libGL 45 + libGLU 46 + libX11 47 + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ 48 + libiconv 45 49 ]; 46 50 47 - hardeningDisable = [ "pic" ]; 51 + hardeningDisable = [ "pic" "format" ]; 52 + 53 + enableParallelBuilding = true; 48 54 49 55 postInstall = '' 50 56 mkdir -p $out/share/doc ··· 87 93 ''; 88 94 license = licenses.gpl2Plus; 89 95 maintainers = with maintainers; [ AndersonTorres ]; 90 - platforms = platforms.linux; 96 + platforms = platforms.unix; 91 97 }; 92 98 }
+3 -1
pkgs/top-level/all-packages.nix
··· 7820 7820 7821 7821 mdp = callPackage ../applications/misc/mdp { }; 7822 7822 7823 - mednafen = callPackage ../applications/emulators/mednafen { }; 7823 + mednafen = callPackage ../applications/emulators/mednafen { 7824 + inherit (darwin) libiconv; 7825 + }; 7824 7826 7825 7827 mednafen-server = callPackage ../applications/emulators/mednafen/server.nix { }; 7826 7828