mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-07 22:11:45 +03:00
mednafen: Fix on Darwin
This commit is contained in:
parent
23c7839aff
commit
3e3cb9b7c9
@ -15,6 +15,7 @@
|
|||||||
, libsndfile
|
, libsndfile
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, zlib
|
, zlib
|
||||||
|
, libiconv
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -31,20 +32,25 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = [
|
buildInputs = [
|
||||||
SDL2
|
SDL2
|
||||||
SDL2_net
|
SDL2_net
|
||||||
alsa-lib
|
|
||||||
flac
|
flac
|
||||||
freeglut
|
freeglut
|
||||||
libGL
|
|
||||||
libGLU
|
|
||||||
libX11
|
|
||||||
libcdio
|
libcdio
|
||||||
libjack2
|
libjack2
|
||||||
libsamplerate
|
libsamplerate
|
||||||
libsndfile
|
libsndfile
|
||||||
zlib
|
zlib
|
||||||
|
] ++ lib.optionals stdenv.hostPlatform.isLinux [
|
||||||
|
alsa-lib
|
||||||
|
libGL
|
||||||
|
libGLU
|
||||||
|
libX11
|
||||||
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||||
|
libiconv
|
||||||
];
|
];
|
||||||
|
|
||||||
hardeningDisable = [ "pic" ];
|
hardeningDisable = [ "pic" "format" ];
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/share/doc
|
mkdir -p $out/share/doc
|
||||||
@ -87,6 +93,6 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
maintainers = with maintainers; [ AndersonTorres ];
|
maintainers = with maintainers; [ AndersonTorres ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -7820,7 +7820,9 @@ with pkgs;
|
|||||||
|
|
||||||
mdp = callPackage ../applications/misc/mdp { };
|
mdp = callPackage ../applications/misc/mdp { };
|
||||||
|
|
||||||
mednafen = callPackage ../applications/emulators/mednafen { };
|
mednafen = callPackage ../applications/emulators/mednafen {
|
||||||
|
inherit (darwin) libiconv;
|
||||||
|
};
|
||||||
|
|
||||||
mednafen-server = callPackage ../applications/emulators/mednafen/server.nix { };
|
mednafen-server = callPackage ../applications/emulators/mednafen/server.nix { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user