diff --git a/pkgs/development/r-modules/default.nix b/pkgs/development/r-modules/default.nix index 3bdbf494c0b9..879824fc7467 100644 --- a/pkgs/development/r-modules/default.nix +++ b/pkgs/development/r-modules/default.nix @@ -1341,6 +1341,12 @@ let textshaping = old.textshaping.overrideAttrs (attrs: { env.NIX_LDFLAGS = "-lfribidi -lharfbuzz"; }); + + torch = old.torch.overrideAttrs (attrs: { + preConfigure = '' + patchShebangs configure + ''; + }); }; in self