From 82a30be74acf592b374e21cebba51fd99270f880 Mon Sep 17 00:00:00 2001 From: Mateusz Kowalczyk Date: Thu, 29 May 2014 04:22:34 +0200 Subject: [PATCH] xboxdrv: 0.8.5 --- pkgs/misc/drivers/xboxdrv/default.nix | 28 +++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/misc/drivers/xboxdrv/default.nix diff --git a/pkgs/misc/drivers/xboxdrv/default.nix b/pkgs/misc/drivers/xboxdrv/default.nix new file mode 100644 index 000000000000..7164f7d6f15f --- /dev/null +++ b/pkgs/misc/drivers/xboxdrv/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchurl, scons, libX11, pkgconfig +, libusb1, boost, glib, dbus_glib }: + +let + version = "0.8.5"; +in stdenv.mkDerivation { + name = "xboxdrv-${version}"; + + src = fetchurl { + url = "https://github.com/Grumbel/xboxdrv/archive/v${version}.tar.gz"; + sha256 = "0xg2dhfsk3i693rgwr1pr532b3hk3zmjxlx55g6bplslr94bibi2"; + }; + + 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 ]; + }; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 04116d388837..7abbae667325 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11041,6 +11041,8 @@ let x2x = callPackage ../tools/X11/x2x { }; + xboxdrv = callPackage ../misc/drivers/xboxdrv { }; + xosd = callPackage ../misc/xosd { }; xsane = callPackage ../applications/graphics/sane/xsane.nix {