git.iko.soy/typeable/cabal2nix
on master help sign in
Add support for unversioned license AGPL tag.
commited9bf921eccd6d48d998b446ddb71371442469a6 authorPeter Simons <simons@cryp.to> dateFri 12 Dec 2014, 10:04 (12 years ago) parentdf60ede
1 file changed+1
src/Cabal2Nix/License.hs+1
src/Cabal2Nix/License.hs+1
@@ -12,6 +12,7 @@ fromCabalLicense (LGPL Nothing) = Unknown (Just "LGPL")
1212fromCabalLicense (LGPL (Just (Version [2,1] []))) = Known "self.stdenv.lib.licenses.lgpl21"
1313fromCabalLicense (LGPL (Just (Version [2] []))) = Known "self.stdenv.lib.licenses.lgpl2"
1414fromCabalLicense (LGPL (Just (Version [3] []))) = Known "self.stdenv.lib.licenses.gpl3"
15+fromCabalLicense (AGPL Nothing) = Unknown (Just "AGPL")
1516fromCabalLicense (AGPL (Just (Version [3] []))) = Known "self.stdenv.lib.licenses.agpl3"
1617fromCabalLicense (AGPL (Just (Version [3,0] []))) = Known "self.stdenv.lib.licenses.agpl3"
1718fromCabalLicense (UnknownLicense "BSD2") = Known "self.stdenv.lib.licenses.bsd2"