@@ -1,21 +0,0 @@
1−module Cabal2Nix.License
2− (module Cabal2Nix.License, module Distribution.License)
5−import Distribution.License
6−import Distribution.Version
8−showLic :: License -> String
9−showLic (GPL Nothing) = show "GPL"
10−showLic (GPL (Just (Version [2] []))) = "self.stdenv.lib.licenses.gpl2"
11−showLic (GPL (Just (Version [3] []))) = "self.stdenv.lib.licenses.gpl3"
12−showLic (LGPL Nothing) = show "LGPL"
13−showLic (LGPL (Just (Version [2,1] []))) = "self.stdenv.lib.licenses.lgpl21"
14−showLic (LGPL (Just (Version [3] []))) = "self.stdenv.lib.licenses.lgpl3"
15−showLic BSD3 = "self.stdenv.lib.licenses.bsd3"
16−showLic BSD4 = "self.stdenv.lib.licenses.bsd4"
17−showLic MIT = "self.stdenv.lib.licenses.mit"
18−showLic PublicDomain = "self.stdenv.lib.licenses.publicDomain"
19−showLic AllRightsReserved = "self.stdenv.lib.licenses.proprietary"
20−showLic OtherLicense = show "unknown"
21−showLic l = error $ "unknown license: " ++ show l