xone: init at 0.2
This commit is contained in:
parent
5b35a7ca6f
commit
8f27371795
39
pkgs/os-specific/linux/xone/default.nix
Normal file
39
pkgs/os-specific/linux/xone/default.nix
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
{ stdenv, lib, fetchFromGitHub, kernel, fetchurl }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "xone-${version}-${kernel.version}";
|
||||||
|
version = "0.2";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "medusalix";
|
||||||
|
repo = "xone";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-m4305Xl5w4nyAVqubjwWsiyPDVtfGykjlSW2eKEytVk=";
|
||||||
|
};
|
||||||
|
|
||||||
|
setSourceRoot = ''
|
||||||
|
export sourceRoot=$(pwd)/source
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||||||
|
|
||||||
|
makeFlags = [
|
||||||
|
"-C"
|
||||||
|
"${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
||||||
|
"M=$(sourceRoot)"
|
||||||
|
"VERSION=${version}"
|
||||||
|
];
|
||||||
|
|
||||||
|
buildFlags = [ "modules" ];
|
||||||
|
installFlags = [ "INSTALL_MOD_PATH=${placeholder "out"}" ];
|
||||||
|
installTargets = [ "modules_install" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Linux kernel driver for Xbox One and Xbox Series X|S accessories";
|
||||||
|
homepage = "https://github.com/medusalix/xone";
|
||||||
|
license = licenses.gpl2;
|
||||||
|
maintainers = with lib.maintainers; [ rhysmdnz ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
|
@ -460,6 +460,8 @@ in {
|
||||||
|
|
||||||
xmm7360-pci = callPackage ../os-specific/linux/xmm7360-pci { };
|
xmm7360-pci = callPackage ../os-specific/linux/xmm7360-pci { };
|
||||||
|
|
||||||
|
xone = callPackage ../os-specific/linux/xone { };
|
||||||
|
|
||||||
xpadneo = callPackage ../os-specific/linux/xpadneo { };
|
xpadneo = callPackage ../os-specific/linux/xpadneo { };
|
||||||
|
|
||||||
zenpower = callPackage ../os-specific/linux/zenpower { };
|
zenpower = callPackage ../os-specific/linux/zenpower { };
|
||||||
|
|
Loading…
Reference in a new issue