nixpkgs/pkgs/misc/drivers/xboxdrv/default.nix
Tuomas Tynkkynen 21f17d69f6 treewide: Add lots of meta.platforms
Build-tested on x86_64 Linux & Mac.
2016-08-02 21:42:43 +03:00

29 lines
788 B
Nix

{ stdenv, fetchurl, scons, libX11, pkgconfig
, libusb1, boost, glib, dbus_glib }:
let
version = "0.8.8";
in stdenv.mkDerivation {
name = "xboxdrv-${version}";
src = fetchurl {
url = "https://github.com/xboxdrv/xboxdrv/archive/v${version}.tar.gz";
sha256 = "0jx2wqmc7602dxyj19n3h8x0cpy929h7c0h39vcc5rf0q74fh3id";
};
patchPhase = ''
substituteInPlace Makefile --replace /usr/local "$out"
'';
buildInputs = [ scons libX11 pkgconfig libusb1 boost glib dbus_glib];
meta = with stdenv.lib; {
homepage = http://pingus.seul.org/~grumbel/xboxdrv/;
description = "Xbox/Xbox360 (and more) gamepad driver for Linux that works in userspace";
license = licenses.gpl3Plus;
maintainers = [ maintainers.fuuzetsu ];
platforms = platforms.linux;
};
}