mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
wiiuse: Make Darwin-compatible
This commit is contained in:
parent
dfb2d52a78
commit
7f56f38051
@ -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;
|
||||
};
|
||||
}
|
||||
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user