git.iko.soy/typeable/cabal2nix
on master help sign in
License.hs: add support for AGPL 3.0 and BSD2 licenses in non-canonical form

BSD2 is actually a proper tag in the latest versio of Cabal, which we cannot use because the older version is a GHC core package. :-(

commit0af0a0cd42e92d605a3f47be1e5c838d9aed5be1 authorPeter Simons <simons@cryp.to> dateSun 7 Dec 2014, 14:12 (12 years ago) parent2161125
1 file changed+2
src/Cabal2Nix/License.hs+2
src/Cabal2Nix/License.hs+2
@@ -13,6 +13,8 @@ fromCabalLicense (LGPL (Just (Version [2,1] []))) = Known "self.stdenv.lib
1313fromCabalLicense (LGPL (Just (Version [2] []))) = Known "self.stdenv.lib.licenses.lgpl2"
1414fromCabalLicense (LGPL (Just (Version [3] []))) = Known "self.stdenv.lib.licenses.gpl3"
1515fromCabalLicense (AGPL (Just (Version [3] []))) = Known "self.stdenv.lib.licenses.agpl3"
16+fromCabalLicense (AGPL (Just (Version [3,0] []))) = Known "self.stdenv.lib.licenses.agpl3"
17+fromCabalLicense (UnknownLicense "BSD2") = Known "self.stdenv.lib.licenses.bsd2"
1618fromCabalLicense BSD3 = Known "self.stdenv.lib.licenses.bsd3"
1719fromCabalLicense BSD4 = Known "self.stdenv.lib.licenses.bsd4"
1820fromCabalLicense MIT = Known "self.stdenv.lib.licenses.mit"