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

This partially reverts commits 68be474e30
and 5a0f953d9f.
This commit is contained in:
Jan Malakhovski 2023-08-26 14:34:50 +00:00
parent 4cdbb53d13
commit 9d33433ed2
2 changed files with 6 additions and 2 deletions

View File

@ -20,7 +20,9 @@ stdenv.mkDerivation rec {
})
];
sourceRoot = src.name;
setSourceRoot = ''
export sourceRoot=$(pwd)/${src.name}
'';
nativeBuildInputs = kernel.moduleBuildDependencies;

View File

@ -17,7 +17,9 @@ stdenv.mkDerivation (finalAttrs: {
sha256 = "sha256-rT2Mq40fE055FemDG7PBjt+cxgIHJG9tTjtw2nW6B98=";
};
sourceRoot = "${finalAttrs.src.name}/hid-xpadneo/src";
setSourceRoot = ''
export sourceRoot=$(pwd)/${finalAttrs.src.name}/hid-xpadneo/src
'';
nativeBuildInputs = kernel.moduleBuildDependencies;
buildInputs = [ bluez ];