fork
Configure Feed
Select the types of activity you want to include in your feed.
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 fetchpatch,
6 cmake,
7 bluez,
8}:
9stdenv.mkDerivation rec {
10
11 pname = "WiiUse";
12 version = "0.15.6";
13
14 src = fetchFromGitHub {
15 owner = "wiiuse";
16 repo = "wiiuse";
17 rev = version;
18 sha256 = "sha256-l2CS//7rx5J3kI32yTSp0BDtP0T5+riLowtnxnfAotc=";
19 };
20
21 outputs = [
22 "out"
23 "dev"
24 "doc"
25 "lib"
26 ];
27
28 patches = [
29 # Fix `.pc` files's double prefixes:
30 # https://github.com/wiiuse/wiiuse/pull/153
31 (fetchpatch {
32 name = "pc-prefix.patch";
33 url = "https://github.com/wiiuse/wiiuse/commit/9c774ec0b71fa5119eabed823c35e4c745f3277c.patch";
34 hash = "sha256-WEHumCiNzsWfyMl7qu9xrlsNhgNcawdi+EFXf5w8jiE=";
35 })
36 ];
37
38 nativeBuildInputs = [ cmake ];
39
40 buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ bluez ];
41
42 propagatedBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ bluez ];
43
44 cmakeFlags = [
45 "-DBUILD_EXAMPLE_SDL=OFF"
46 ]
47 ++ [ (lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic)) ];
48
49 meta = {
50 description = "Feature complete cross-platform Wii Remote access library";
51 mainProgram = "wiiuseexample";
52 license = lib.licenses.gpl3Plus;
53 homepage = "https://github.com/wiiuse/wiiuse";
54 platforms = with lib.platforms; unix;
55 };
56}