Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

Overlay Torch in the package set#323

Merged
danieldk merged 1 commit intomainfrom
overlay-torch
Dec 10, 2025
Merged

Overlay Torch in the package set#323
danieldk merged 1 commit intomainfrom
overlay-torch

Conversation

@danieldk
Copy link
Member

Before this change, we wouldn't overlay Torch in the package set. The main reason was that evaluation was too expensive -- even more so when we also had C++98 and C++11 variants (which doubled the number of Torch versions).

However, this does not really work well with dependencies (some dependencies like einops will rely on Torch) or extra test dependencies that a user adds to a flake. So overlay Torch so that all of nixpkgs sees the version that is defined in the build set.

In this change, the cxx11Abi is also removed and the C++11 ABI is set as the default. Upstream does not build for the C++98 ABI anymore, so it is time to remove the support before it bitrots.

Before this change, we wouldn't overlay Torch in the package set. The
main reason was that evaluation was too expensive -- even more so when
we also had C++98 and C++11 variants (which doubled the number of Torch
versions).

However, this does not really work well with dependencies (some
dependencies like `einops` will rely on Torch) or extra test
dependencies that a user adds to a flake. So overlay Torch so that all
of nixpkgs sees the version that is defined in the build set.

In this change, the `cxx11Abi` is also removed and the C++11 ABI is set
as the default. Upstream does not build for the C++98 ABI anymore, so it
is time to remove the support before it bitrots.
Copy link
Contributor

@MekkCyber MekkCyber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix

@danieldk danieldk merged commit d7aa270 into main Dec 10, 2025
28 of 29 checks passed
@danieldk danieldk deleted the overlay-torch branch December 10, 2025 13:35
@danieldk
Copy link
Member Author

Thanks for the quick fix

Helps me with the dependency stuff as well 😄.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants