3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/misc/drivers/xow/default.nix

34 lines
919 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, libusb1 }:
2019-12-22 20:10:48 +00:00
stdenv.mkDerivation rec {
pname = "xow";
2020-03-30 02:05:52 +01:00
version = "0.4";
2019-12-22 20:10:48 +00:00
src = fetchFromGitHub {
owner = "medusalix";
repo = "xow";
rev = "v${version}";
2020-03-30 02:05:52 +01:00
sha256 = "1xkwcx2gqip9v2h3zjmrn7sgcck3midl5alhsmr3zivgdipamynv";
2019-12-22 20:10:48 +00:00
};
2020-03-30 02:05:52 +01: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 20:10:48 +00:00
enableParallelBuilding = true;
buildInputs = [ libusb1 ];
2019-12-22 20:10:48 +00:00
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 02:05:52 +01:00
maintainers = [ maintainers.jansol ];
2019-12-22 20:10:48 +00:00
platforms = platforms.linux;
};
}