git.iko.soy/typeable/cabal2nix
on master help sign in
fromCabalLicense: recognize a properly specified Apache-2.0 license
commitc132e973c4cc257345d9f47ae463657c233a94ab authorPeter Simons <simons@cryp.to> dateWed 19 Feb 2014, 11:08 (13 years ago) parent5bd3ee6
1 file changed+1
src/Cabal2Nix/License.hs+1
src/Cabal2Nix/License.hs+1
@@ -18,5 +18,6 @@ fromCabalLicense MIT = Known "self.stdenv.lib.lice
1818fromCabalLicense PublicDomain = Known "self.stdenv.lib.licenses.publicDomain"
1919fromCabalLicense AllRightsReserved = Known "self.stdenv.lib.licenses.unfree"
2020fromCabalLicense (Apache Nothing) = Known "self.stdenv.lib.licenses.asl20"
21+fromCabalLicense (Apache (Just (Version [2,0] [])))= Known "self.stdenv.lib.licenses.asl20"
2122fromCabalLicense OtherLicense = Unknown Nothing
2223fromCabalLicense l = error $ "Cabal2Nix.License.fromCabalLicense: unknown license " ++ show l