linuxPackages.{xpadneo, xone}: fix after simplifying sourceRoot

This partially reverts commits 68be474e30887a66e0530edfc898b74fb5dd5d26
and 5a0f953d9ffe5c40df263ccccffa647a86729f5a.

+6 -2
+3 -1
pkgs/os-specific/linux/xone/default.nix
··· 20 20 }) 21 21 ]; 22 22 23 - sourceRoot = src.name; 23 + setSourceRoot = '' 24 + export sourceRoot=$(pwd)/${src.name} 25 + ''; 24 26 25 27 nativeBuildInputs = kernel.moduleBuildDependencies; 26 28
+3 -1
pkgs/os-specific/linux/xpadneo/default.nix
··· 17 17 sha256 = "sha256-rT2Mq40fE055FemDG7PBjt+cxgIHJG9tTjtw2nW6B98="; 18 18 }; 19 19 20 - sourceRoot = "${finalAttrs.src.name}/hid-xpadneo/src"; 20 + setSourceRoot = '' 21 + export sourceRoot=$(pwd)/${finalAttrs.src.name}/hid-xpadneo/src 22 + ''; 21 23 22 24 nativeBuildInputs = kernel.moduleBuildDependencies; 23 25 buildInputs = [ bluez ];