lol
1{ lib
2, stdenv
3, fetchFromGitHub
4, cmake
5, bluez
6, libobjc
7, Foundation
8, IOBluetooth
9}:
10stdenv.mkDerivation rec {
11
12 pname = "WiiUse";
13 version = "0.15.5";
14
15 src = fetchFromGitHub {
16 owner = "wiiuse";
17 repo = "wiiuse";
18 rev = version;
19 sha256 = "05gc3s0wxx7ga4g32yyibyxdh46rm9bbslblrc72ynrjxq98sg13";
20 };
21
22 nativeBuildInputs = [ cmake ];
23
24 buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ bluez ]
25 ++ lib.optionals stdenv.hostPlatform.isDarwin [ libobjc Foundation IOBluetooth ];
26
27 propagatedBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ bluez ];
28
29 cmakeFlags = [ "-DBUILD_EXAMPLE_SDL=OFF" ];
30
31 meta = with lib; {
32 description = "Feature complete cross-platform Wii Remote access library";
33 license = licenses.gpl3Plus;
34 homepage = "https://github.com/wiiuse/wiiuse";
35 maintainers = with maintainers; [ shamilton ];
36 platforms = with platforms; unix;
37 };
38}