diff --git a/pkgs/by-name/bc/bcachefs-tools/package.nix b/pkgs/by-name/bc/bcachefs-tools/package.nix index 1ce6bd467a7a..d39098774fb0 100644 --- a/pkgs/by-name/bc/bcachefs-tools/package.nix +++ b/pkgs/by-name/bc/bcachefs-tools/package.nix @@ -6,6 +6,7 @@ libuuid, libsodium, keyutils, + kmod, liburcu, zlib, libaio, @@ -45,6 +46,9 @@ stdenv.mkDerivation (finalAttrs: { postPatch = '' substituteInPlace Makefile \ --replace-fail "target/release/bcachefs" "target/${stdenv.hostPlatform.rust.rustcTargetSpec}/release/bcachefs" + + substituteInPlace src/commands/mount.rs \ + --replace-fail 'std::process::Command::new("modprobe")' 'std::process::Command::new("${lib.getExe' kmod "modprobe"}")' ''; nativeBuildInputs = [