depot/third_party/nixpkgs/pkgs/misc/drivers/xboxdrv/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

28 lines
816 B
Nix

{ lib, stdenv, fetchurl, sconsPackages, libX11, pkg-config
, libusb1, boost, glib, dbus-glib }:
let
version = "0.8.8";
in stdenv.mkDerivation {
pname = "xboxdrv";
inherit version;
src = fetchurl {
url = "https://github.com/xboxdrv/xboxdrv/archive/v${version}.tar.gz";
sha256 = "0jx2wqmc7602dxyj19n3h8x0cpy929h7c0h39vcc5rf0q74fh3id";
};
makeFlags = [ "PREFIX=$(out)" ];
nativeBuildInputs = [ pkg-config sconsPackages.scons_3_1_2 ];
buildInputs = [ libX11 libusb1 boost glib dbus-glib ];
dontUseSconsInstall = true;
meta = with lib; {
homepage = "https://pingus.seul.org/~grumbel/xboxdrv/";
description = "Xbox/Xbox360 (and more) gamepad driver for Linux that works in userspace";
license = licenses.gpl3Plus;
maintainers = [ ];
platforms = platforms.linux;
};
}