3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/misc/drivers/xwiimote/default.nix
John Ericson 531e4b80c9 misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs
Only acts on one-line dependency lists.
2017-09-21 15:49:53 -04:00

26 lines
760 B
Nix

{ stdenv, udev, ncurses, pkgconfig, fetchurl, bluez }:
stdenv.mkDerivation rec {
name = "xwiimote-2";
src = fetchurl {
url = "https://github.com/dvdhrm/xwiimote/releases/download/${name}/${name}.tar.xz";
sha256 = "1g9cbhblll47l300zr999xr51x2g98y49l222f77fhswd12kjzhd";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ udev ncurses bluez ];
configureFlags = "--with-doxygen=no";
meta = {
homepage = http://dvdhrm.github.io/xwiimote;
description = "Userspace utilities to control connected Nintendo Wii Remotes";
platforms = stdenv.lib.platforms.linux;
};
postInstallPhase = ''
mkdir -p "$out/etc/X11/xorg.conf.d/"
cp "res/50-xorg-fix-xwiimote.conf" "$out/etc/X11/xorg.conf.d/50-fix-xwiimote.conf"
'';
}