depot/third_party/nixpkgs/pkgs/misc/drivers/xow/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

33 lines
919 B
Nix

{ stdenv, fetchFromGitHub, libusb1 }:
stdenv.mkDerivation rec {
pname = "xow";
version = "0.4";
src = fetchFromGitHub {
owner = "medusalix";
repo = "xow";
rev = "v${version}";
sha256 = "1xkwcx2gqip9v2h3zjmrn7sgcck3midl5alhsmr3zivgdipamynv";
};
makeFlags = [
"BUILD=RELEASE"
"VERSION=${version}"
"BINDIR=${placeholder ''out''}/bin"
"UDEVDIR=${placeholder ''out''}/lib/udev/rules.d"
"MODLDIR=${placeholder ''out''}/lib/modules-load.d"
"MODPDIR=${placeholder ''out''}/lib/modprobe.d"
"SYSDDIR=${placeholder ''out''}/lib/systemd/system"
];
enableParallelBuilding = true;
buildInputs = [ libusb1 ];
meta = with stdenv.lib; {
homepage = "https://github.com/medusalix/xow";
description = "Linux driver for the Xbox One wireless dongle";
license = licenses.gpl2Plus;
maintainers = [ maintainers.jansol ];
platforms = platforms.linux;
};
}