linuxPackages.bcachefs: fix vmlinux path

From PR https://github.com/koverstreet/bcachefs-tools/pull/620

Also enable strictDeps.
This commit is contained in:
John Titor 2026-06-21 18:25:21 +05:30
commit 8811577314

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;