You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Consider building unfreeRedistributable Packages #83884
0.kind: enhancementAdd something new or improve an existing system.2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: continuous integrationAffects continuous integration (CI) in Nixpkgs, including Ofborg and GitHub Actions
Per definition those packages are redistributable without any legal problems (or at least should be, otherwise I feel like the license is wrongly described)
So we could build those as well, because there doesn't seem to be a reason not to
Reacted by misuzu, Evan Stoll, Dennis Gosnell, scalavision, InLaw, Leopold Talirz, Atemu, Ming-Long Huang, İlkecan Bozdoğan, Samuel Ainsworth and 50 more
Reacted by Samuel Ainsworth, Lukas, Simon Adameit, Yueh-Shun Li, Caret, musjj and Alice Jacka
I hit the same problem today after getting the package for materialize which is BSL licensed merged. The software license "grants you the right to copy, modify, create derivative works, redistribute, and make non-production use of the Licensed Work." so it should be perfectly fine to build and distribute binaries through Hydra.
I'd like to help resolve this problem, is the direction set forth in this issue and #97789 still the way to go here?
nixpkgs.config.allowUnfreePredicate = (x: if x ? meta.license then x.meta.license.redistributable else false);
It only checks redistributable but this is true automatically for all free licenses and being redistributable is all that matters in the case of hydra builds, I suppose.
Having Hydra and its administrators essentially agree to arbitrary EULA texts that can run into several pages and that were designed by potentially‐litigious corporations not trying to help create a software commons would not, in my eyes, be an improvement, even separate to any ideological opposition to non‐free software.
Let's be honest, it'd be a lie to talk of "compliance" or of "agreeing to terms" in this context. These EULAs aren't designed to be "complied with", they're designed to create and maintain a capacity for non-physical violence.
In the specific case of CUDA, it is being redistributed by every imaginable distribution (julia even distributes a patchelfed driver, which the EULA explicitly prohibits to distribute in any form whatsoever) based on some private sign offs from nvidia. I've no doubts that if nvidia wished to sue any of these said distributions, they could and they would, regardless of whatever prior communication they have had.
Rather than talking about "agreeing to EULAs", I think we're rather openly talking about one or another party, providing a cache (the nixos hydra currently owned by the foundation being one candidate), taking the risk of being sued, acting either under the assumption that the corporation would abstain from resorting to violence, or that they'd be able to (financially) sustain a trial. One could consider whether or not to take such a risk depending on whether or not that'd accommodate use-cases that attract the "useful" kind of contributions (e.g., whether it'd be "useful" to attract HPC users). We try to comply to the best of our abilities to reduce the risk for Nixpkgs: e.g., in the specific case, we tried contacting nvidia through several channels, ultimately getting no attention whatever, and we never distributed the drivers in the external/third-party caches, and we try to communicate to the end user that they should acquaint with the EULAs and that it's a risk they are taking.
Also, to keep a perspective, let's remember that the binary cache is only there for efficiency: the Nixpkgs expressions could be consumed by the end user without any substituters (thus without the substituters "redistributing" any artifacts or committing to any imposed contracts), and often enough the result would be equivalent to substitution, except they'd generate more heat. Arguably, the optimization offered by substituters is not a "bad thing" for "the society". If the legal framework of one or another jurisdiction hinders such optimizations, maybe it's the legal framework that needs adjustment, and maybe we should work with the upstream projects towards making peaceful co-existence possible.
Reacted by Peder Bergebakken Sundt, Connor Baker, Samuel Ainsworth and Willy
If that's really the blocker then let's get that for nixpkgs as well. The rest of this response is off-topic.
EDIT: since you mentioned that nvidia was contacted already and that failed, we should probably drop discussion of nvidia packages unless we can comply with said EULA.
I think I am basically in agreement with @SomeoneSerge on the fundamentals here even if we see the issue through different lenses, despite my personally being a FOSS licence compliance stickler. Changing copyright law is certainly beyond the scope or means of the NixOS project, though, for better or worse.
If the CUDA EULAs themselves were not considered acceptable but we had a public sign‐off from NVIDIA that seemed acceptable to the community, then certainly I’d consider CUDA packages to be reasonable candidates for any curated list of Hydra‐acceptable non‐free licences. I’m not sure whether this would be necessary or not, depending on what criteria (if any) we could agree on for acceptable non‐free licences or how onerous the EULAs are in the first place (they’re rather tl;dr). But I personally wouldn’t feel good about informal backroom permission even if they would give it to us.
EDIT: since you mentioned that nvidia was contacted already and that failed, we should probably drop discussion of nvidia packages unless we can comply with said EULA
I didn't emphasize this enough, but I don't think this is a Nixpkgs issue. This is a discussion to be had be anyone who volunteers to provide a cache. In case of the nixos hydra, it was a question considered a while ago by the foundation (rejecting the idea at that time), and later, perhaps, it'd be a matter for an Association/Assembly/etc to pick up.
If the CUDA EULAs themselves were not considered acceptable but we had a public sign‐off from NVIDIA that seemed acceptable to the community, then certainly I’d consider CUDA packages to be reasonable candidates for any curated list of Hydra‐acceptable non‐free licences.
FWIW I consider the precedent of nearly every other distribution republishing CUDA as a sort of de facto public sign-off from NVIDIA. I genuinely believe that it is in their best interest to maximize distribution channels for their software, and based on their behavior I glean that they see things similarly. It's my personal guess that some lawyer was tasked with writing up a generic EULA a decade ago and since then no one has fussed too much about it, internal or external to the company.
For the CUDA-specific part of things, it is orthogonal to the new RFC: if its license is not actually redistributable, then it should be fixed in the nixpkgs expressions, and RFC 185 can still land for all other software.
Also FWIW, according to #83433 we have already received cease-and-desists to remove non-redistributable software. We just complied and everything went fine. EDIT: the proper link is here: #83884 (comment)
People can make mistake by tagging unfree stuff as unfreeRedistributable, but they can also make the same mistake by tagging these things as free anyway.
So let's keep the discussion on the RFC (and probably here too) focused on redistributing redistributable software.
The question of whether CUDA is actually redistributable or not should probably be left to some other issue with the proper title. And similarly for all other licenses that people would feel should not be redistributed by hydra: we should just mark them as redistributable = false, instead of adding a new curated list of licenses.
Reacted by melvyn2, Jonas Chevalier and Darius Jahandarie
I wonder... feels like a political topic rather than technical one. Maybe it's more suitable for the Steering Committee instead of the RFC process? (just an idea; I don't know really)
I totally agree! But I don't know of any way to reach the Steering Committee as a whole other than the RFC process, so I decided to just open an RFC and let them make a choice — I do think that the Shepherd Team here should most likely be exactly the members of the Steering Committee.
Reacted by éclairevoyant, Else, Someone, Jonathan Berrisch, Samuel Ainsworth, Ethan Carter Edwards, musjj, Tim, Pavel Atanasov, Chris Portela and Phani Rithvij
Reacted by srd424, David Oliver, Jonathan Berrisch, Samuel Ainsworth, musjj, Tim, Pavel Atanasov and Chris Portela
0.kind: enhancementAdd something new or improve an existing system.2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: continuous integrationAffects continuous integration (CI) in Nixpkgs, including Ofborg and GitHub Actions
Activity
mkg20001 commentedon Sep 11, 2020
The required change would be probably this one
stale commentedon Mar 16, 2021
mkg20001 commentedon Mar 16, 2021
Still not resolved
domenkozar commentedon Mar 25, 2021
As per #15162 we might actually also want to whitelist what drivers to install into an ISO.
As per https://discourse.nixos.org/t/pytorch-and-cuda-torch-not-compiled-with-cuda-enabled/11272 we could then support data science by shipping CUDA-enabled binaries by default.
nixos-discourse commentedon Mar 25, 2021
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/comparing-nix-and-conda/11366/65
petrosagg commentedon Apr 15, 2021
I hit the same problem today after getting the package for
materializewhich is BSL licensed merged. The software license "grants you the right to copy, modify, create derivative works, redistribute, and make non-production use of the Licensed Work." so it should be perfectly fine to build and distribute binaries through Hydra.I'd like to help resolve this problem, is the direction set forth in this issue and #97789 still the way to go here?
mkg20001 commentedon Apr 15, 2021
I think so, I'm just not sure which way to implement the flag to enable it (ref #97789 (comment))
Atemu commentedon Aug 11, 2021
All Licenses now have a redistributable attr. (See PR above)
The work that remains is:
allowRedistributableconfig optionK900 commentedon Nov 13, 2021
Any updates here?
mkg20001 commentedon Nov 13, 2021
Redistributable is now a thing
Hydra building and caching redistributable unfree things is still pending
mkg20001 commentedon Nov 13, 2021
The quick fix for hydra would be this:
It only checks redistributable but this is true automatically for all free licenses and being redistributable is all that matters in the case of hydra builds, I suppose.
K900 commentedon Nov 13, 2021
Is anything preventing us from making that change on Hydra, like, now?
mkg20001 commentedon Nov 13, 2021
Not really, it could just be done
35 remaining items
SomeoneSerge commentedon Jul 20, 2024
Agreed, if this were to go we'd need a list of licenses we consider "safe enough". That's the direction we tried with an external builder at
nixpkgs/pkgs/top-level/release-cuda.nix
Lines 17 to 28 in e6e5ee6
Let's be honest, it'd be a lie to talk of "compliance" or of "agreeing to terms" in this context. These EULAs aren't designed to be "complied with", they're designed to create and maintain a capacity for non-physical violence.
In the specific case of CUDA, it is being redistributed by every imaginable distribution (julia even distributes a patchelfed driver, which the EULA explicitly prohibits to distribute in any form whatsoever) based on some private sign offs from nvidia. I've no doubts that if nvidia wished to sue any of these said distributions, they could and they would, regardless of whatever prior communication they have had.
Rather than talking about "agreeing to EULAs", I think we're rather openly talking about one or another party, providing a cache (the nixos hydra currently owned by the foundation being one candidate), taking the risk of being sued, acting either under the assumption that the corporation would abstain from resorting to violence, or that they'd be able to (financially) sustain a trial. One could consider whether or not to take such a risk depending on whether or not that'd accommodate use-cases that attract the "useful" kind of contributions (e.g., whether it'd be "useful" to attract HPC users). We try to comply to the best of our abilities to reduce the risk for Nixpkgs: e.g., in the specific case, we tried contacting nvidia through several channels, ultimately getting no attention whatever, and we never distributed the drivers in the external/third-party caches, and we try to communicate to the end user that they should acquaint with the EULAs and that it's a risk they are taking.
Also, to keep a perspective, let's remember that the binary cache is only there for efficiency: the Nixpkgs expressions could be consumed by the end user without any substituters (thus without the substituters "redistributing" any artifacts or committing to any imposed contracts), and often enough the result would be equivalent to substitution, except they'd generate more heat. Arguably, the optimization offered by substituters is not a "bad thing" for "the society". If the legal framework of one or another jurisdiction hinders such optimizations, maybe it's the legal framework that needs adjustment, and maybe we should work with the upstream projects towards making peaceful co-existence possible.
eclairevoyant commentedon Jul 20, 2024
If that's really the blocker then let's get that for nixpkgs as well. The rest of this response is off-topic.
EDIT: since you mentioned that nvidia was contacted already and that failed, we should probably drop discussion of nvidia packages unless we can comply with said EULA.
emilazy commentedon Jul 20, 2024
I think I am basically in agreement with @SomeoneSerge on the fundamentals here even if we see the issue through different lenses, despite my personally being a FOSS licence compliance stickler. Changing copyright law is certainly beyond the scope or means of the NixOS project, though, for better or worse.
If the CUDA EULAs themselves were not considered acceptable but we had a public sign‐off from NVIDIA that seemed acceptable to the community, then certainly I’d consider CUDA packages to be reasonable candidates for any curated list of Hydra‐acceptable non‐free licences. I’m not sure whether this would be necessary or not, depending on what criteria (if any) we could agree on for acceptable non‐free licences or how onerous the EULAs are in the first place (they’re rather tl;dr). But I personally wouldn’t feel good about informal backroom permission even if they would give it to us.
SomeoneSerge commentedon Jul 20, 2024
I didn't emphasize this enough, but I don't think this is a Nixpkgs issue. This is a discussion to be had be anyone who volunteers to provide a cache. In case of the nixos hydra, it was a question considered a while ago by the foundation (rejecting the idea at that time), and later, perhaps, it'd be a matter for an Association/Assembly/etc to pick up.
samuela commentedon Jul 22, 2024
FWIW I consider the precedent of nearly every other distribution republishing CUDA as a sort of de facto public sign-off from NVIDIA. I genuinely believe that it is in their best interest to maximize distribution channels for their software, and based on their behavior I glean that they see things similarly. It's my personal guess that some lawyer was tasked with writing up a generic EULA a decade ago and since then no one has fussed too much about it, internal or external to the company.
Ekleog commentedon Dec 15, 2024
FWIW, I just opened a RFC at NixOS/rfcs#185 .
For the CUDA-specific part of things, it is orthogonal to the new RFC: if its license is not actually redistributable, then it should be fixed in the nixpkgs expressions, and RFC 185 can still land for all other software.
Also FWIW, according to #83433 we have already received cease-and-desists to remove non-redistributable software. We just complied and everything went fine. EDIT: the proper link is here: #83884 (comment)
People can make mistake by tagging unfree stuff as unfreeRedistributable, but they can also make the same mistake by tagging these things as free anyway.
So let's keep the discussion on the RFC (and probably here too) focused on redistributing redistributable software.
The question of whether CUDA is actually redistributable or not should probably be left to some other issue with the proper title. And similarly for all other licenses that people would feel should not be redistributed by hydra: we should just mark them as
redistributable = false, instead of adding a new curated list of licenses.Atemu commentedon Dec 15, 2024
Are you sure you linked the correct discussion? I don't remeber a C&D being discussed there.
Ekleog commentedon Dec 15, 2024
Oh you're right, I misremembered which discussion the comment I was thinking of was coming from!
Here is the proper link: #83884 (comment)
vcunat commentedon Dec 15, 2024
I wonder... feels like a political topic rather than technical one. Maybe it's more suitable for the Steering Committee instead of the RFC process? (just an idea; I don't know really)
Ekleog commentedon Dec 15, 2024
I totally agree! But I don't know of any way to reach the Steering Committee as a whole other than the RFC process, so I decided to just open an RFC and let them make a choice — I do think that the Shepherd Team here should most likely be exactly the members of the Steering Committee.
zimbatm commentedon Dec 30, 2024
FYI: unfree packages are available today in the https://nix-community.cachix.org cache. For more context see https://nix-community.org/package-sets/
srd424 commentedon Dec 30, 2024
Ooh, it's got zerotier builds! Nice one, thanks to everyone that's made this happen :)