git.iko.soy/typeable/cabal2nix
on master help sign in
Add support for the ISC license.
6890fe6Peter Simons
src/Cabal2Nix/License.hs+1
@@ -25,5 +25,6 @@ fromCabalLicense UnspecifiedLicense = Known "stdenv.lib.lice
25fromCabalLicense AllRightsReserved = Known "stdenv.lib.licenses.unfree"
25fromCabalLicense AllRightsReserved = Known "stdenv.lib.licenses.unfree"
26fromCabalLicense (Apache Nothing) = Known "stdenv.lib.licenses.asl20"
26fromCabalLicense (Apache Nothing) = Known "stdenv.lib.licenses.asl20"
27fromCabalLicense (Apache (Just (Version [2,0] []))) = Known "stdenv.lib.licenses.asl20"
27fromCabalLicense (Apache (Just (Version [2,0] []))) = Known "stdenv.lib.licenses.asl20"
28+fromCabalLicense ISC = Known "stdenv.lib.licenses.isc"
28fromCabalLicense OtherLicense = Unknown Nothing
29fromCabalLicense OtherLicense = Unknown Nothing
29fromCabalLicense l = error $ "Cabal2Nix.License.fromCabalLicense: unknown license " ++ show l
30fromCabalLicense l = error $ "Cabal2Nix.License.fromCabalLicense: unknown license " ++ show l