lib.licenses: make all licenses have `free` and `deprecated` attrs

This makes them consistent which eases more complex operations on licenses such
as filtering etc.
launchpad/nixpkgs/master
Atemu 3 years ago
parent 65c605a662
commit 48797d7114
  1. 4
      lib/licenses.nix

@ -1,8 +1,10 @@
{ lib }:
lib.mapAttrs (lname: lset: let
defaultLicense = {
defaultLicense = rec {
shortName = lname;
free = true; # Most of our licenses are Free, explicitly declare unfree additions as such!
deprecated = false;
};
mkLicense = licenseDeclaration: let

Loading…
Cancel
Save