Skip to content

Consider building unfreeRedistributable Packages #83884

Open

Description

@mkg20001

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

Activity

  1. mkg20001 commented on Sep 11, 2020

    @mkg20001
    MemberAuthor

    The required change would be probably this one

    nixpkgs.config.allowUnfreePredicate = (x: if x ? meta.license then x.meta.license.shortName == "unfreeRedistributable" else false);
    
  2. stale commented on Mar 16, 2021

    @stale
  3. added
    2.status: stale
    on Mar 16, 2021
  4. mkg20001 commented on Mar 16, 2021

    @mkg20001
    MemberAuthor

    Still not resolved

  5. removed
    2.status: stale
    on Mar 16, 2021
  6. domenkozar commented on Mar 25, 2021

    @domenkozar
    Member

    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.

  7. nixos-discourse commented on Mar 25, 2021

    @nixos-discourse

    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

  8. petrosagg commented on Apr 15, 2021

    @petrosagg
    Member

    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?

  9. mkg20001 commented on Apr 15, 2021

    @mkg20001
    MemberAuthor

    I think so, I'm just not sure which way to implement the flag to enable it (ref #97789 (comment))

  10. Atemu commented on Aug 11, 2021

    @Atemu
    Member

    All Licenses now have a redistributable attr. (See PR above)

    The work that remains is:

    • introduce an allowRedistributable config option
    • Allow redist even if unfree in Hydra jobsets
  11. K900 commented on Nov 13, 2021

    @K900
    Contributor

    Any updates here?

  12. mkg20001 commented on Nov 13, 2021

    @mkg20001
    MemberAuthor

    Redistributable is now a thing

    nix-repl> lib.licenses.free
    { deprecated = false; free = true; fullName = "Unspecified free software license"; redistributable = true; shortName = "free"; }
    
    nix-repl> lib.licenses.free.redistributable
    true
    

    Hydra building and caching redistributable unfree things is still pending

  13. mkg20001 commented on Nov 13, 2021

    @mkg20001
    MemberAuthor

    The quick fix for hydra would be this:

    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.

  14. K900 commented on Nov 13, 2021

    @K900
    Contributor

    Is anything preventing us from making that change on Hydra, like, now?

  15. mkg20001 commented on Nov 13, 2021

    @mkg20001
    MemberAuthor

    Not really, it could just be done

  16. 35 remaining items

  17. SomeoneSerge commented on Jul 20, 2024

    @SomeoneSerge
    Contributor

    specific curated list of unfreeRedistributable licences

    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

    allowUnfreePredicate =
    p:
    builtins.all (
    license:
    license.free
    || builtins.elem license.shortName [
    "CUDA EULA"
    "cuDNN EULA"
    "cuTENSOR EULA"
    "NVidia OptiX EULA"
    ]
    ) (ensureList p.meta.license);

    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.

  18. eclairevoyant commented on Jul 20, 2024

    @eclairevoyant
    Contributor

    based on some private sign offs from nvidia

    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.

  19. emilazy commented on Jul 20, 2024

    @emilazy
    Member

    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.

  20. SomeoneSerge commented on Jul 20, 2024

    @SomeoneSerge
    Contributor

    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.

  21. samuela commented on Jul 22, 2024

    @samuela
    Member

    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.

  22. added
    6.topic: continuous integration
    and removed on Nov 4, 2024
  23. Ekleog commented on Dec 15, 2024

    @Ekleog
    Member

    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.

  24. Atemu commented on Dec 15, 2024

    @Atemu
    Member

    Are you sure you linked the correct discussion? I don't remeber a C&D being discussed there.

  25. Ekleog commented on Dec 15, 2024

    @Ekleog
    Member

    Oh you're right, I misremembered which discussion the comment I was thinking of was coming from!

    Here is the proper link: #83884 (comment)

  26. vcunat commented on Dec 15, 2024

    @vcunat
    Member

    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)

  27. Ekleog commented on Dec 15, 2024

    @Ekleog
    Member

    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.

  28. zimbatm commented on Dec 30, 2024

    @zimbatm
    Member
  29. srd424 commented on Dec 30, 2024

    @srd424
    Contributor

    FYI: unfree packages are available today in the https://nix-community.cachix.org cache. For more context see https://nix-community.org/package-sets/

    Ooh, it's got zerotier builds! Nice one, thanks to everyone that's made this happen :)

  30. added
    2.status: stale
    on Jul 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: enhancement2.status: stale6.topic: continuous integration

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions