summary refs log tree commit diff
path: root/pkgs/lib/licenses.nix
diff options
context:
space:
mode:
authorSander van der Burg <s.vanderburg@tudelft.nl>2010-02-25 13:06:17 +0000
committerSander van der Burg <s.vanderburg@tudelft.nl>2010-02-25 13:06:17 +0000
commit680c80e0b4417dfbfeb8f695f5d49822b915a6b1 (patch)
tree2189b11a97a031939dfbaea236cd72360c4dcff1 /pkgs/lib/licenses.nix
parent5b4f9b1e56729ebb7308f47db52c1bb21236f9fb (diff)
downloadnixpkgs-680c80e0b4417dfbfeb8f695f5d49822b915a6b1.tar
nixpkgs-680c80e0b4417dfbfeb8f695f5d49822b915a6b1.tar.gz
nixpkgs-680c80e0b4417dfbfeb8f695f5d49822b915a6b1.tar.bz2
nixpkgs-680c80e0b4417dfbfeb8f695f5d49822b915a6b1.tar.lz
nixpkgs-680c80e0b4417dfbfeb8f695f5d49822b915a6b1.tar.xz
nixpkgs-680c80e0b4417dfbfeb8f695f5d49822b915a6b1.tar.zst
nixpkgs-680c80e0b4417dfbfeb8f695f5d49822b915a6b1.zip
Added initial licenses attributeset to specify meta.license attributes more concisely
svn path=/nixpkgs/trunk/; revision=20248
Diffstat (limited to 'pkgs/lib/licenses.nix')
-rw-r--r--pkgs/lib/licenses.nix154
1 files changed, 154 insertions, 0 deletions
diff --git a/pkgs/lib/licenses.nix b/pkgs/lib/licenses.nix
new file mode 100644
index 00000000000..53124655499
--- /dev/null
+++ b/pkgs/lib/licenses.nix
@@ -0,0 +1,154 @@
+{
+  /* License identifiers loosely based on: http://fedoraproject.org/wiki/Licensing
+   * 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.
+   */
+
+  asl20 = {
+    shortName = "ASL2.0";
+    fullName = "Apache Software License 2.0";
+    url = http://www.apache.org/licenses/LICENSE-2.0;
+  };
+  
+  boost = {
+    shortName = "boost";
+    fullName = "Boost Software License";
+    url = http://www.boost.org/LICENSE_1_0.txt;
+  };
+
+  bsd2 = {
+    shortName = "BSD-2";
+    fullName = "BSD license (2 clause)";
+    url = http://www.freebsd.org/copyright/freebsd-license.html;
+  };
+
+  bsd3 = {
+    shortName = "BSD-3";
+    fullName = "BSD license (3 clause)";
+    url = http://www.opensource.org/licenses/bsd-license.php;
+  };
+
+  bsdOriginal = {
+    shortName = "BSD-original";
+    fullName = "Original BSD license with advertising clause";
+    url = https://fedoraproject.org/wiki/Licensing/BSD;
+  };
+
+  cpl10 = {
+    shortName = "CPL 1.0";
+    fullName = "Common Public License version 1.0";
+    url = http://www.eclipse.org/legal/cpl-v10.html;
+  };
+
+  epl10 = {
+    shortName = "EPL 1.0";
+    fullName = "Eclipse Public License version 1.0";
+    url = http://www.eclipse.org/legal/epl-v10.html;
+  };
+
+  gpl2 = {
+    shortName = "GPLv2";
+    fullName = "GNU General Public License version 2 only";
+    url = http://www.gnu.org/licenses/old-licenses/gpl-2.0.html;
+  };
+    
+  gpl2Oss = {
+    shortName = "GPLv2+OSS";
+    fullName = "GNU General Public License version 2 only (with OSI approved licenses linking exception)";
+    url = http://www.mysql.com/about/legal/licensing/foss-exception;
+  };
+  
+  gpl2Plus = {
+    shortName = "GPLv2+";
+    fullName = "GNU General Public License version 2 or higher";
+    url = http://www.gnu.org/licenses/old-licenses/gpl-2.0.html;
+  };
+
+  gpl3 = {
+    shortName = "GPLv3";
+    fullName = "GNU General Public License version 3 only";
+    url = http://www.fsf.org/licensing/licenses/gpl.html;
+  };
+  
+  gpl3Plus = {
+    shortName = "GPLv3+";
+    fullName = "GNU General Public License version 3 or later";
+    url = http://www.fsf.org/licensing/licenses/gpl.html;
+  };
+
+  gpl3ClasspathPlus = {
+    shortName = "GPLv3+classpath+";
+    fullName = "GNU General Public License version 3 or later (with Classpath exception)";
+    url = https://fedoraproject.org/wiki/Licensing/GPL_Classpath_Exception;
+  };
+
+  ijg = {
+    shortName = "IJG";
+    fullName = "Independent JPEG Group License";
+    url = https://fedoraproject.org/wiki/Licensing/IJG;
+  };
+
+  libtiff = {
+    shortName = "libtiff";
+    fullName = "libtiff license";
+    url = https://fedoraproject.org/wiki/Licensing/libtiff;
+  };
+  
+  lgpl21 = {
+    shortName = "LGPLv2.1";
+    fullName = "GNU Lesser General Public License version 2.1 only";
+    url = http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html;
+  };
+  
+  lgpl21Plus = {
+    shortName = "LGPLv2.1+";
+    fullName = "GNU Lesser General Public License version 2.1 or later";
+    url = http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html;
+  };
+  
+  lgpl3 = {
+    shortName = "LGPLv3";
+    fullName = "GNU Lesser General Public License version 3 only";
+    url = http://www.fsf.org/licensing/licenses/lgpl.html;
+  };
+  
+  lgpl3Plus = {
+    shortName = "LGPLv3+";
+    fullName = "GNU Lesser General Public License version 3 or later";
+    url = http://www.fsf.org/licensing/licenses/lgpl.html;
+  };
+  
+  mit = {
+    shortName = "MIT";
+    fullName = "MIT/X11 license";
+    url = http://www.opensource.org/licenses/mit-license.php;
+  };
+  
+  mpl11 = {
+    shortName = "MPL1.1";
+    fullName = "Mozilla Public License version 1.1";
+    url = http://www.mozilla.org/MPL/MPL-1.1.html;
+  };
+  
+  openssl = {
+    shortName = "openssl";
+    fullName = "OpenSSL license";
+    url = http://www.openssl.org/source/license.html;
+  };
+  
+  publicDomain = {
+    shortName = "Public Domain";
+    fullname = "Public Domain";
+  };
+  
+  proprietary = {
+    shortName = "Proprietary";
+    fullName = "Proprietary (non redistributable) license";
+  };
+  
+  zlib = {
+    shortName = "zlib";
+    fullName = "zlib license";
+    url = http://www.gzip.org/zlib/zlib_license.html;
+  };
+}