1 { lib, stdenv, fetchFromGitHub, autoreconfHook, bison, flex, bluez, pkg-config, gtk2 }:
3 stdenv.mkDerivation rec {
5 version = "unstable-2010-02-21";
7 src = fetchFromGitHub {
10 rev = "fadf11e89b579bcc0336a0692ac15c93785f3f82";
11 sha256 = "0qdb0x757k76nfj32xc2nrrdqd9jlwgg63vfn02l2iznnzahxp0h";
14 hardeningDisable = [ "format" ];
16 configureFlags = [ "--without-python" ];
19 sed -i -e '/$(LDCONFIG)/d' common/include/lib.mak.in
22 buildInputs = [ bison flex bluez gtk2 ];
24 nativeBuildInputs = [ autoreconfHook pkg-config ];
26 NIX_LDFLAGS = "-lbluetooth";
29 # Some programs (for example, cabal-install) have problems with the double 0
30 sed -i -e "s/0.6.00/0.6.0/" $out/lib/pkgconfig/cwiid.pc
34 description = "Linux Nintendo Wiimote interface";
35 homepage = "http://cwiid.org";
36 license = licenses.gpl2Plus;
37 maintainers = with maintainers; [ bennofs ];
38 platforms = platforms.linux;