nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 44 lines 920 B view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, scons 5, libX11 6, pkg-config 7, libusb1 8, boost 9, glib 10, dbus-glib 11}: 12 13stdenv.mkDerivation rec { 14 pname = "xboxdrv"; 15 version = "0.8.8"; 16 17 src = fetchFromGitHub { 18 owner = "xboxdrv"; 19 repo = "xboxdrv"; 20 rev = "v${version}"; 21 hash = "sha256-R0Bt4xfzQA1EmZbf7lcWLwSSUayf5Y711QhlAVhiLrY="; 22 }; 23 24 makeFlags = [ "PREFIX=$(out)" ]; 25 nativeBuildInputs = [ pkg-config scons ]; 26 buildInputs = [ libX11 libusb1 boost glib dbus-glib ]; 27 enableParallelBuilding = true; 28 dontUseSconsInstall = true; 29 30 patches = [ 31 ./fix-60-sec-delay.patch 32 ./scons-py3.patch 33 ./scons-v4.2.0.patch 34 ./xboxdrvctl-py3.patch 35 ]; 36 37 meta = with lib; { 38 homepage = "https://xboxdrv.gitlab.io/"; 39 description = "Xbox/Xbox360 (and more) gamepad driver for Linux that works in userspace"; 40 license = licenses.gpl3Plus; 41 maintainers = [ ]; 42 platforms = platforms.linux; 43 }; 44}