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
Refuse to install pkgs without specified license when allowUnfree = false #43231
0.kind: enhancementAdd something new or improve an existing system.1.severity: legalThis PR or issue raises or fixes a legal issue, e.g. licensing compliance2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md9.needs: community feedbackThis needs feedback from more community members.
It appears there are currently over 2500 packages with no meta.license specified. When allowUnfree = false, they seem to still install without issue. I think nix should probably refuse to install them until their license has been specified, to avoid accidentally installing non-free packages.
Reacted by ikervagyok, Joachim F., xeji, dotlambda, Michael Weiss, bhipple and Gavin John
This doesn't seem like a good idea, there are lot's of meta packages in nixpkgs like buildEnv which don't have (and probably shouldn't have) license information. Anything unfree in nixpkgs that doesn't have a license specified is a problem and should be fixed.
This doesn't seem like a good idea, there are lot's of meta packages in nixpkgs like buildEnv which don't have (and probably shouldn't have) license information
I disagree - everything listed in all-packages.nix should have a license. This is what is reported in various tools like nix search, nix-env -qa, and Hydra. It's kind of weird for certain things where there are legitimately multiple licenses but in those cases you can combine them into a list .
I was mostly referring to making nix-env -i fail, since that doesn't make sense in a lot of cases. Something like making checkMeta enforce a license for derivations with a src/srcs makes more sense to me. There are things nix all-packages.nix like setup hooks that are just part of nixpkgs, and only enforcing toplevel attributes still hides other potential problems.
This has been automatically marked as stale because it has had no activity for 180 days.
If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.
Here are suggestions that might help resolve this more quickly:
Search for maintainers and people that previously touched the related code and @ mention them in a comment.
0.kind: enhancementAdd something new or improve an existing system.1.severity: legalThis PR or issue raises or fixes a legal issue, e.g. licensing compliance2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md9.needs: community feedbackThis needs feedback from more community members.
Activity
xeji commentedon Jul 10, 2018
This would be essentially equivalent to making
licenses.unfreethe default value formeta.license.matthewbauer commentedon Jul 11, 2018
A potential issue with something like that is lots of people use stdenv.mkDerivation for stuff outside of Nixpkgs where they may not be as concerned with licensing. It might be better to make sure everything in Nixpkgs has a license through something like make-tarball.nix (https://github.com/nixos/nixpkgs/blob/master/pkgs/top-level/make-tarball.nix#L77-L97) & make it block the channels. This would also be useful for making sure
builtins.parseDrvNameworks correctly.LnL7 commentedon Jul 17, 2018
This doesn't seem like a good idea, there are lot's of meta packages in nixpkgs like buildEnv which don't have (and probably shouldn't have) license information. Anything unfree in nixpkgs that doesn't have a license specified is a problem and should be fixed.
make-tarball: also check for licenses & versions
matthewbauer commentedon Jul 24, 2018
I disagree - everything listed in all-packages.nix should have a license. This is what is reported in various tools like
nix search,nix-env -qa, and Hydra. It's kind of weird for certain things where there are legitimately multiple licenses but in those cases you can combine them into a list .LnL7 commentedon Jul 24, 2018
I was mostly referring to making
nix-env -ifail, since that doesn't make sense in a lot of cases. Something like making checkMeta enforce a license for derivations with a src/srcs makes more sense to me. There are things nix all-packages.nix like setup hooks that are just part of nixpkgs, and only enforcing toplevel attributes still hides other potential problems.aanderse commentedon Feb 9, 2019
@matthewbauer so agreement is that we should just continue to work on getting licenses listed and close this issue?
stale commentedon Jun 3, 2020
Thank you for your contributions.
This has been automatically marked as stale because it has had no activity for 180 days.
If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.
Here are suggestions that might help resolve this more quickly: