[Backport release-26.05] linuxPackages.bcachefs: fix vmlinux path (#533918)

This commit is contained in:
Masum Reza 2026-06-21 14:45:12 +00:00 committed by GitHub
commit 902b9d4c9e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,9 +11,15 @@ stdenv.mkDerivation {
version = "${kernel.version}-${bcachefs-tools.version}";
__structuredAttrs = true;
strictDeps = true;
src = bcachefs-tools.dkms;
postPatch = ''
substituteInPlace src/fs/bcachefs/Makefile \
--replace-fail '$(objtree)/vmlinux' '${kernel.dev}/vmlinux'
'';
nativeBuildInputs = kernel.moduleBuildDependencies;
enableParallelBuilding = true;