git.iko.soy/typeable/cabal2nix
on master help sign in
Cabal2Nix.hs: added a '--no-check' option to set 'doCheck=false' in the generated expression
commitbb44a51bdf1d373ed1d5dac149219b1ff78599a8 authorPeter Simons <simons@cryp.to> dateSun 24 Feb 2013, 22:25 (14 years ago) parent0a09168
1 file changed+3
src/Cabal2Nix.hs+3
src/Cabal2Nix.hs+3
@@ -22,6 +22,7 @@ data Configuration = Configuration
2222 , optMaintainer :: [String]
2323 , optPlatform :: [String]
2424 , optHaddock :: Bool
25+ , optDoCheck :: Bool
2526 }
2627 deriving (Show)
2728
@@ -33,6 +34,7 @@ defaultConfiguration = Configuration
3334 , optMaintainer = []
3435 , optPlatform = []
3536 , optHaddock = True
37+ , optDoCheck = True
3638 }
3739
3840options :: [OptDescr (Configuration -> Configuration)]
@@ -42,6 +44,7 @@ options =
4244 , Option ['m'] ["maintainer"] (ReqArg (\x o -> o { optMaintainer = x : optMaintainer o }) "MAINTAINER") "maintainer of this package (may be specified multiple times)"
4345 , Option ['p'] ["platform"] (ReqArg (\x o -> o { optPlatform = x : optPlatform o }) "PLATFORM") "supported build platforms (may be specified multiple times)"
4446 , Option [] ["no-haddock"] (NoArg (\o -> o { optHaddock = False })) "don't run Haddock when building this package"
47+ , Option [] ["no-check"] (NoArg (\o -> o { optDoCheck = False })) "don't run regression test suites of this package"
4548 ]
4649
4750usage :: String