git.iko.soy/typeable/cabal2nix
on master help sign in
Remove cruft from Normalize.hs.
commitb8925e868950b2e64bd77d10ae8eb1531710db19 authorPeter Simons <simons@cryp.to> dateTue 1 Sep 2015, 16:40 (11 years ago) parentfc29b8f
1 file changed−26
distribution-nixpkgs/src/Distribution/Nixpkgs/Haskell/FromCabal/Normalize.hs−26
distribution-nixpkgs/src/Distribution/Nixpkgs/Haskell/FromCabal/Normalize.hs−26
@@ -27,15 +27,6 @@ normalizeBuildInfo (PackageName pname) bi = bi
2727 & haskell %~ Set.filter (\b -> view localName b /= fromString pname)
2828 & tool %~ Set.filter (\b -> view localName b /= fromString pname)
2929
30− {-
31− {
32− , testDepends = normalizeNixNames (Set.delete pname testDepends)
33− , extraLibs = normalizeNixLibs extraLibs
34− , pkgConfDeps = normalizeNixLibs pkgConfDeps
35− , configureFlags = normalizeSet configureFlags
36− }
37−-}
38−
3930normalizeMeta :: Meta -> Meta
4031normalizeMeta meta = meta
4132 & description %~ normalizeSynopsis
@@ -54,23 +45,6 @@ quote ('"':cs) = '\\' : '"' : quote cs
5445quote (c:cs) = c : quote cs
5546quote [] = []
5647
57−-- normalizeSet :: Set String -> Set String
58−-- normalizeSet = Set.filter (not . null)
59−
60−-- normalizeNixNames :: Set String -> Set String
61−-- normalizeNixNames = normalizeSet . Set.map toNixName
62−
63−-- normalizeNixLibs :: Set String -> Set String
64−-- normalizeNixLibs = normalizeSet . Set.fromList . concatMap libNixName . Set.toList
65−
66−-- normalizeNixBuildTools :: Set Identifier -> Set Identifier
67−-- normalizeNixBuildTools = Set.fromList . concatMap buildToolNixName . Set.toList
68−
69−-- normalizePlatforms :: Set String -> Set String
70−-- normalizePlatforms = normalizeSet . Set.map
71−-- (\p -> if '.' `elem` p then p else "stdenv.lib.platforms." ++ p)
72−
73−
7448-- |When a flag is specified multiple times, the first occurrence
7549-- counts. This is counter-intuitive, IMHO, but it's how cabal does it.
7650-- Flag names are spelled in all lowercase.