Skip to content

Commit

Permalink
Merge pull request #1875 from JAEarly/master
Browse files Browse the repository at this point in the history
overrides: add setup for torchaudio
  • Loading branch information
Nebucatnetzer authored Jan 7, 2025
2 parents 5c4de98 + 9f28fb3 commit 4d260d9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions overrides/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3966,6 +3966,19 @@ lib.composeManyExtensions [
];
});

torchaudio = prev.torchaudio.overridePythonAttrs (old: {
autoPatchelfIgnoreMissingDeps = true;

# (no patchelf on darwin, since no elves there.)
preFixup = lib.optionals (!stdenv.isDarwin) ''
addAutoPatchelfSearchPath "${final.torch}/${final.python.sitePackages}/torch/lib"
'';

buildInputs = old.buildInputs or [ ] ++ [
final.torch
];
});

torchvision = prev.torchvision.overridePythonAttrs (old: {
autoPatchelfIgnoreMissingDeps = true;

Expand Down

0 comments on commit 4d260d9

Please sign in to comment.