wiiuse: Make Darwin-compatible
This commit is contained in:
parent
dfb2d52a78
commit
7f56f38051
|
@ -2,8 +2,10 @@
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, cmake
|
, cmake
|
||||||
, pkg-config
|
|
||||||
, bluez
|
, bluez
|
||||||
|
, libobjc
|
||||||
|
, Foundation
|
||||||
|
, IOBluetooth
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
|
||||||
|
@ -19,15 +21,18 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
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; {
|
meta = with lib; {
|
||||||
description = "Feature complete cross-platform Wii Remote access library";
|
description = "Feature complete cross-platform Wii Remote access library";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3Plus;
|
||||||
homepage = "https://github.com/wiiuse/wiiuse";
|
homepage = "https://github.com/wiiuse/wiiuse";
|
||||||
maintainers = with maintainers; [ shamilton ];
|
maintainers = with maintainers; [ shamilton ];
|
||||||
platforms = with platforms; linux;
|
platforms = with platforms; unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -9680,7 +9680,10 @@ in
|
||||||
|
|
||||||
whsniff = callPackage ../applications/networking/sniffers/whsniff { };
|
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 { };
|
woeusb = callPackage ../tools/misc/woeusb { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue