diff options
author | Atemu <atemu.main@gmail.com> | 2021-07-20 21:16:57 +0200 |
---|---|---|
committer | Atemu <atemu.main@gmail.com> | 2021-08-11 19:07:02 +0200 |
commit | 48797d7114d0ba036d9a65b556842ccfee8b4055 (patch) | |
tree | 37303ff637f52eefac281b61e562b93c646aa690 /lib | |
parent | 65c605a6623e155ca9d0ed3435e7f1105dc5d945 (diff) |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/licenses.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/licenses.nix b/lib/licenses.nix index 55c6b81041c07..5f5cf3490cf7b 100644 --- a/lib/licenses.nix +++ b/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 |