@@ -27,7 +27,7 @@ type PkgVersion = String
2727type PkgSHA256 = String
2828type PkgURL = String
2929type PkgDescription = String
30−type PkgLicense = License
30+type PkgLicense = String
3131type PkgIsLib = Bool
3232type PkgIsExe = Bool
3333type PkgDependencies = [Dependency] -- [CondTree ConfVar [Dependency] ()]
@@ -78,7 +78,7 @@ showNixPkg (Pkg name ver sha256 url desc lic isLib isExe deps
7878 nest 2 $ vcat [
7979 onlyIf url $ attr "homepage" $ string url,
8080 onlyIf desc $ attr "description" $ string desc,
81− attr "license" $ text (showLic lic),
81+ attr "license" $ text lic,
8282 onlyIf platforms $
8383 sep [
8484 text "platforms" <+> equals,
@@ -115,7 +115,7 @@ cabal2nix cabal sha256 platforms maintainers =
115115 pkg = packageDescription cabal
116116 PackageName pkgname = pkgName (package pkg)
117117 pkgver = showVersion (pkgVersion (package pkg))
118− lic = license pkg
118+ lic = showLic (license pkg)
119119 url = homepage pkg
120120 desc = normalizeDescription (synopsis pkg)
121121 -- globalDeps = buildDepends pkg