blob: 8702c480457db8fbcd9394d7818f120e5b685f61 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{ 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;
};
}
|