nixpkgs/pkgs/misc/drivers/xow/default.nix

34 lines
917 B
Nix
Raw Normal View History

2020-03-30 03:05:52 +02:00
{ stdenv, fetchFromGitHub, libusb }:
2019-12-22 21:10:48 +01:00
stdenv.mkDerivation rec {
pname = "xow";
2020-03-30 03:05:52 +02:00
version = "0.4";
2019-12-22 21:10:48 +01:00
src = fetchFromGitHub {
owner = "medusalix";
repo = "xow";
rev = "v${version}";
2020-03-30 03:05:52 +02:00
sha256 = "1xkwcx2gqip9v2h3zjmrn7sgcck3midl5alhsmr3zivgdipamynv";
2019-12-22 21:10:48 +01:00
};
2020-03-30 03:05:52 +02:00
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"
];
2019-12-22 21:10:48 +01:00
enableParallelBuilding = true;
buildInputs = [ libusb ];
meta = with stdenv.lib; {
homepage = "https://github.com/medusalix/xow";
description = "Linux driver for the Xbox One wireless dongle";
license = licenses.gpl2Plus;
2020-03-30 03:05:52 +02:00
maintainers = [ maintainers.jansol ];
2019-12-22 21:10:48 +01:00
platforms = platforms.linux;
};
}