nixpkgs/pkgs/development/libraries/wiiuse/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
918 B
Nix
Raw Normal View History

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