2020-06-27 13:00:58 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, bluez
|
2021-05-16 21:22:10 +01:00
|
|
|
, libobjc
|
|
|
|
, Foundation
|
|
|
|
, IOBluetooth
|
2020-06-27 13:00:58 +01:00
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
pname = "WiiUse";
|
|
|
|
version = "0.15.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wiiuse";
|
|
|
|
repo = "wiiuse";
|
2020-11-01 22:39:49 +00:00
|
|
|
rev = version;
|
2020-06-27 13:00:58 +01:00
|
|
|
sha256 = "05gc3s0wxx7ga4g32yyibyxdh46rm9bbslblrc72ynrjxq98sg13";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2021-05-16 21:22:10 +01:00
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ bluez ]
|
|
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [ libobjc Foundation IOBluetooth ];
|
2020-06-27 13:00:58 +01:00
|
|
|
|
2021-05-16 21:22:10 +01:00
|
|
|
propagatedBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ bluez ];
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DBUILD_EXAMPLE_SDL=OFF" ];
|
2020-06-27 13:00:58 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Feature complete cross-platform Wii Remote access library";
|
2021-05-16 21:22:10 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2020-06-27 13:00:58 +01:00
|
|
|
homepage = "https://github.com/wiiuse/wiiuse";
|
|
|
|
maintainers = with maintainers; [ shamilton ];
|
2021-05-16 21:22:10 +01:00
|
|
|
platforms = with platforms; unix;
|
2020-06-27 13:00:58 +01:00
|
|
|
};
|
|
|
|
}
|