@@ -93,10 +93,10 @@ commonTestOptions = buildDepends
93 ] : commonBuildOptions
93 ] : commonBuildOptions
95mkExecutable :: NonEmptyString -> [ExecutableField] -> Section
95mkExecutable :: 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
98mkTest :: NonEmptyString -> [TestSuiteField] -> Section
98mkTest :: 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
101main :: IO ()
101main :: IO ()