Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 16 lines (11 sloc) 0.4 kB
6dea19e @kolmodin Work on the Portage/ implementation
kolmodin authored
1 module Portage.Cabal
2 (fromOverlay) where
3
4 import qualified Data.Map as Map
5
60d04de @kolmodin adapt to cabal-1.8 and cabal-install-0.7.5 (HEADs)
kolmodin authored
6 import qualified Distribution.Client.PackageIndex as Cabal
6dea19e @kolmodin Work on the Portage/ implementation
kolmodin authored
7
8 import qualified Portage.Overlay as Portage
9
10 fromOverlay :: Portage.Overlay -> Cabal.PackageIndex Portage.ExistingEbuild
11 fromOverlay overlay = Cabal.fromList $
12 [ ebuild
1cec758 @trofi Some more -Wall fixes
trofi authored
13 | (_pn, ebuilds) <- Map.toAscList (Portage.overlayMap overlay)
6dea19e @kolmodin Work on the Portage/ implementation
kolmodin authored
14 , ebuild <- ebuilds
15 ]
Something went wrong with that request. Please try again.