Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / misc / drivers / xwiimote / default.nix
blob69ffcdd78865b8e4707f39326271bd36b9c90784
1 { lib, stdenv, udev, ncurses, pkg-config, fetchurl, bluez }:
3 stdenv.mkDerivation rec {
4   pname = "xwiimote";
5   version = "2";
7   src = fetchurl {
8     url = "https://github.com/dvdhrm/xwiimote/releases/download/xwiimote-${version}/xwiimote-${version}.tar.xz";
9     sha256 = "1g9cbhblll47l300zr999xr51x2g98y49l222f77fhswd12kjzhd";
10   };
12   nativeBuildInputs = [ pkg-config ];
13   buildInputs = [ udev ncurses bluez ];
15   configureFlags = [ "--with-doxygen=no" ];
17   meta = {
18     homepage = "https://dvdhrm.github.io/xwiimote";
19     description = "Userspace utilities to control connected Nintendo Wii Remotes";
20     platforms = lib.platforms.linux;
21     license = lib.licenses.mit;
22   };
24   postInstallPhase = ''
25     mkdir -p "$out/etc/X11/xorg.conf.d/"
26     cp "res/50-xorg-fix-xwiimote.conf" "$out/etc/X11/xorg.conf.d/50-fix-xwiimote.conf"
27   '';