git.iko.soy/typeable/cabal2nix
on master help sign in
hackage2nix.hs: document limitation of finalizePackageDescription with respect to test suites
commit34b38ce77da7cbb3ac6ca06f58ec6ead07ed8fcb authorPeter Simons <simons@cryp.to> dateSun 4 Jan 2015, 19:12 (12 years ago) parent8f40f97
1 file changed+7
src/hackage2nix.hs+7
src/hackage2nix.hs+7
@@ -213,6 +213,13 @@ selectLatestMatchingPackage (Dependency (PackageName name) vrange) db =
213213-- <> header "hackage2nix -- convert the Hackage database into Nix build instructions"
214214-- )
215215
216+-- TODO: This function returns either a (minimal) list of missing dependencies
217+-- or a finalized package description of the build. Unfortunately, missing
218+-- dependencies for *testing* or *benchmarking* are not considered. I suppose,
219+-- we could turn test suites into executables for the processing to capture
220+-- their dependencies, and then add an automatic 'doCheck = false' if that
221+-- doesn't work. This whole are needs some cleanup.
222+
216223cabal2nix :: (Dependency -> Bool) -> GenericPackageDescription -> Either [Dependency] Derivation
217224cabal2nix resolver cabal = case finalize of
218225 Left ds -> Left ds