1 { stdenvNoCC, lib, fetchurl, cabextract }:
3 stdenvNoCC.mkDerivation rec {
4 pname = "xow_dongle-firmware";
11 url = "http://download.windowsupdate.com/c/msdownload/update/driver/drvs/2017/07/1cd6a87c-623f-4407-a52d-c31be49e925c_e19f60808bdcbfbd3c3df6be3e71ffc52e43261e.cab";
12 sha256 = "013g1zngxffavqrk5jy934q3bdhsv6z05ilfixdn8dj0zy26lwv5";
15 nativeBuildInputs = [ cabextract ];
20 cabextract -F FW_ACC_00U.bin ${src}
24 install -Dm644 FW_ACC_00U.bin ${placeholder "out"}/lib/firmware/xow_dongle.bin
28 description = "Xbox One wireless dongle firmware";
29 homepage = "https://www.xbox.com/en-NZ/accessories/adapters/wireless-adapter-windows";
30 license = licenses.unfree;
31 maintainers = with lib.maintainers; [ rhysmdnz ];
32 platforms = platforms.linux;