generate-cabal-file.hs: all executables depend on the cabal2nix library
commit9a0b83fc581fcd349e4718b0caeaf04aed4795cf
authorPeter Simons <simons@cryp.to>
dateFri 21 Aug 2015, 11:53 (11 years ago)
parentd19c848
generate-cabal-file.hs+2−2
@@ -93,10 +93,10 @@ commonTestOptions = buildDepends
9393 ] : commonBuildOptions
9494
9595mkExecutable :: NonEmptyString -> [ExecutableField] -> Section
96−mkExecutable exe opt = executable exe $ mainIs (exe++".hs") : opt ++ commonBuildOptions
96+mkExecutable exe opt = executable exe $ mainIs (exe++".hs") : buildDepends [unconstrained "cabal2nix"] : opt ++ commonBuildOptions
9797
9898mkTest :: NonEmptyString -> [TestSuiteField] -> Section
99−mkTest test opt = testSuite test $ exitcodeFields (test++".hs") ++ opt ++ hsSourceDirs ["test"] : commonTestOptions
99+mkTest test opt = testSuite test $ exitcodeFields (test++".hs") ++ buildDepends [unconstrained "cabal2nix"] : opt ++ hsSourceDirs ["test"] : commonTestOptions
100100
101101main :: IO ()
102102main = do