tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
xpad-noone: init at 0-unstable-2024-01-10
Cryolitia PukNgae
11 months ago
d33b0f61
6607cf78
+47
2 changed files
expand all
collapse all
unified
split
pkgs
os-specific
linux
xpad-noone
default.nix
top-level
linux-kernels.nix
+45
pkgs/os-specific/linux/xpad-noone/default.nix
···
1
1
+
{
2
2
+
lib,
3
3
+
stdenv,
4
4
+
fetchFromGitHub,
5
5
+
kernel,
6
6
+
}:
7
7
+
8
8
+
stdenv.mkDerivation (finalAttr: {
9
9
+
pname = "xpad-noone";
10
10
+
version = "0-unstable-2024-01-10";
11
11
+
12
12
+
src = fetchFromGitHub {
13
13
+
owner = "medusalix";
14
14
+
repo = finalAttr.pname;
15
15
+
rev = "c3d1610";
16
16
+
hash = "sha256-jDRyvbU9GsnM1ARTuwnoD7ZXlfBxne13UpSKRo7HHSY=";
17
17
+
};
18
18
+
19
19
+
hardeningDisable = [ "pic" ];
20
20
+
21
21
+
nativeBuildInputs = kernel.moduleBuildDependencies;
22
22
+
23
23
+
postPatch = ''
24
24
+
substituteInPlace Makefile --replace-fail "/lib/modules/\$(shell uname -r)/build" "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
25
25
+
'';
26
26
+
27
27
+
installPhase = ''
28
28
+
runHook preInstall
29
29
+
30
30
+
install *.ko -Dm444 -t $out/lib/modules/${kernel.modDirVersion}/kernel/drivers/xpad-noone
31
31
+
32
32
+
runHook postInstall
33
33
+
'';
34
34
+
35
35
+
meta = {
36
36
+
homepage = "https://github.com/medusalix/xpad-noone";
37
37
+
description = "Xpad driver from the Linux kernel with support for Xbox One controllers removed";
38
38
+
license = with lib.licenses; [
39
39
+
gpl2Only
40
40
+
];
41
41
+
maintainers = with lib.maintainers; [ Cryolitia ];
42
42
+
platforms = lib.platforms.linux;
43
43
+
broken = kernel.kernelOlder "5.15";
44
44
+
};
45
45
+
})
+2
pkgs/top-level/linux-kernels.nix
···
637
637
638
638
tsme-test = callPackage ../os-specific/linux/tsme-test { };
639
639
640
640
+
xpad-noone = callPackage ../os-specific/linux/xpad-noone { };
641
641
+
640
642
} // lib.optionalAttrs config.allowAliases {
641
643
zfs = throw "linuxPackages.zfs has been removed, use zfs_* instead, or linuxPackages.\${pkgs.zfs.kernelModuleAttribute}"; # added 2025-01-23
642
644
zfs_2_1 = throw "zfs_2_1 has been removed"; # added 2024-12-25;