diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2014-08-12 19:05:54 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2014-08-12 19:05:54 +0200 |
commit | 905b163b493f8e89f585b9452e2c649b87531ee8 (patch) | |
tree | 422b8b768478c11d4cc8f8a0daaffd0f89c6562f /lib | |
parent | 5cc2a142b0eb8b4942b9b3b0ea94a52e4a7ed7c7 (diff) | |
download | nixlib-905b163b493f8e89f585b9452e2c649b87531ee8.tar nixlib-905b163b493f8e89f585b9452e2c649b87531ee8.tar.gz nixlib-905b163b493f8e89f585b9452e2c649b87531ee8.tar.bz2 nixlib-905b163b493f8e89f585b9452e2c649b87531ee8.tar.lz nixlib-905b163b493f8e89f585b9452e2c649b87531ee8.tar.xz nixlib-905b163b493f8e89f585b9452e2c649b87531ee8.tar.zst nixlib-905b163b493f8e89f585b9452e2c649b87531ee8.zip |
Revert "lib/licenses.nix: allow choosing license by its shortName"
There's no consensus to adopt that (yet). This reverts commit 229e5c41df8db960de9d57b247107b6239a60383.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/licenses.nix | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/lib/licenses.nix b/lib/licenses.nix index ce1d1960c9f9..29144264ddd2 100644 --- a/lib/licenses.nix +++ b/lib/licenses.nix @@ -4,7 +4,7 @@ let }; in -let licenses = rec { +rec { /* License identifiers from spdx.org where possible. * If you cannot find your license here, then look for a similar license or * add it to this list. The URL mentioned above is a good source for inspiration. @@ -87,7 +87,7 @@ let licenses = rec { fullName = "Eclipse Public License 1.0"; }; - free.shortName = "free"; + free = "free"; gpl2 = spdx { shortName = "GPL-2.0"; @@ -237,11 +237,11 @@ let licenses = rec { url = http://www.tcl.tk/software/tcltk/license.html; }; - unfree.shortName = "unfree"; + unfree = "unfree"; - unfreeRedistributable.shortName = "unfree-redistributable"; + unfreeRedistributable = "unfree-redistributable"; - unfreeRedistributableFirmware.shortName = "unfree-redistributable-firmware"; + unfreeRedistributableFirmware = "unfree-redistributable-firmware"; wadalab = { shortName = "wadalab"; @@ -264,8 +264,5 @@ let licenses = rec { fullName = "Zope Public License 2.1"; }; -}; in - # add the same attrmaps, but named by their shortNames (creating e.g. licenses."GPL-2.0+") - with { inherit (import ./attrsets.nix) mapAttrs' nameValuePair; }; - licenses // (mapAttrs' (_: value: nameValuePair value.shortName value) licenses) +} |