diff --git a/pkgs/os-specific/linux/ffado/default.nix b/pkgs/os-specific/linux/ffado/default.nix index 0fc61d0e045f..15f3441e08aa 100644 --- a/pkgs/os-specific/linux/ffado/default.nix +++ b/pkgs/os-specific/linux/ffado/default.nix @@ -33,8 +33,7 @@ mkDerivation rec { prePatch = '' substituteInPlace ./support/tools/ffado-diag.in \ - --replace /lib/modules/ "${kernel.dev}/lib/modules/" \ - --replace 'stdout ("uname", "-r").rstrip ()' '"${kernel.modDirVersion}"' + --replace /lib/modules/ "/run/booted-system/kernel-modules/lib/modules/" ''; patches = [