git.iko.soy/typeable/cabal2nix
on master help sign in
Hackage4Nix.hs: automatically ignore all packages that have configureFlags or patchPhase set
fbc3882Peter Simons
src/Hackage4Nix.hs+2
@@ -106,6 +106,8 @@ parseNixFile path buf
106 = msgDebug ("ignore known bad package " ++ path) >> return Nothing
106 = msgDebug ("ignore known bad package " ++ path) >> return Nothing
107 | True <- buf `regmatch` "src = (fetchgit|sourceFromHead)"
107 | True <- buf `regmatch` "src = (fetchgit|sourceFromHead)"
108 = msgDebug ("ignore non-hackage package " ++ path) >> return Nothing
108 = msgDebug ("ignore non-hackage package " ++ path) >> return Nothing
109+ | True <- buf `regmatch` "(patchPhase|configureFlags) ="
110+ = msgDebug ("ignore patched package " ++ path) >> return Nothing
109 | True <- buf `regmatch` "noHaddock"
111 | True <- buf `regmatch` "noHaddock"
110 = msgDebug ("ignore non-haddock package " ++ path) >> return Nothing
112 = msgDebug ("ignore non-haddock package " ++ path) >> return Nothing
111 | True <- buf =~ pack "cabal.mkDerivation"
113 | True <- buf =~ pack "cabal.mkDerivation"