wiiuse: Make Darwin-compatible

This commit is contained in:
OPNA2608 2021-05-16 22:22:10 +02:00
parent dfb2d52a78
commit 7f56f38051
2 changed files with 14 additions and 6 deletions

View File

@ -2,8 +2,10 @@
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, bluez
, libobjc
, Foundation
, IOBluetooth
}:
stdenv.mkDerivation rec {
@ -19,15 +21,18 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
buildInputs = [ (lib.getDev bluez) ];
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ bluez ]
++ lib.optionals stdenv.hostPlatform.isDarwin [ libobjc Foundation IOBluetooth ];
cmakeFlags = [ "-DBUILD_EXAMPLE_SDL=NO" ];
propagatedBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ bluez ];
cmakeFlags = [ "-DBUILD_EXAMPLE_SDL=OFF" ];
meta = with lib; {
description = "Feature complete cross-platform Wii Remote access library";
license = licenses.gpl3;
license = licenses.gpl3Plus;
homepage = "https://github.com/wiiuse/wiiuse";
maintainers = with maintainers; [ shamilton ];
platforms = with platforms; linux;
platforms = with platforms; unix;
};
}

View File

@ -9680,7 +9680,10 @@ in
whsniff = callPackage ../applications/networking/sniffers/whsniff { };
wiiuse = callPackage ../development/libraries/wiiuse { };
wiiuse = callPackage ../development/libraries/wiiuse {
inherit (darwin) libobjc;
inherit (darwin.apple_sdk.frameworks) Foundation IOBluetooth;
};
woeusb = callPackage ../tools/misc/woeusb { };