git.iko.soy/typeable/cabal2nix
on master help sign in
Cabal2Nix/License.hs: dropped obsolete module
commitce58b8b4bd488fe0c8f677135e792a616a84f0fd authorPeter Simons <simons@cryp.to> dateSun 14 Aug 2011, 23:34 (15 years ago) parent5c6de8f
1 file changed−21
src/Cabal2Nix/License.hs−21
src/Cabal2Nix/License.hsdeleted−21
@@ -1,21 +0,0 @@
1−module Cabal2Nix.License
2− (module Cabal2Nix.License, module Distribution.License)
3− where
4−
5−import Distribution.License
6−import Distribution.Version
7−
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