@@ -0,0 +1,32 @@
1+{ stdenv, fetchFromGitHub, libusb, gitMinimal }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "xow";
5+ version = "0.2";
6+
7+ src = fetchFromGitHub {
8+ owner = "medusalix";
9+ repo = "xow";
10+ rev = "v${version}";
11+ sha256 = "03ajal91xi52svzy621aa4jcdf0vj4pqd52kljam0wryrlmcpbr3";
12+ };
13+
14+ makeFlags = [ "BUILD=RELEASE" "VERSION=${version}" ];
15+ enableParallelBuilding = true;
16+ buildInputs = [ libusb ];
17+
18+ installPhase = ''
19+ runHook preInstall
20+ mkdir -p $out/bin
21+ cp xow $out/bin
22+ runHook postInstall
23+ '';
24+
25+ meta = with stdenv.lib; {
26+ homepage = "https://github.com/medusalix/xow";
27+ description = "Linux driver for the Xbox One wireless dongle";
28+ license = licenses.gpl2Plus;
29+ maintainers = [ maintainers.pmiddend ];
30+ platforms = platforms.linux;
31+ };
32+}