package opam-0install
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=2b6d03b34b1324e898c968bfd9eff15ebe6a95f6711fb5ae274e6ea9eaffd24f
sha512=b667fe49c02675bc1893e670b7a8dbee3c68dfffaed25d267b1f417627cf996c2603ca46c14a2586b9253ef03f43da6bd93eaf779c440b229dba46677c3dfab1
doc/opam-0install/Opam_0install/Solver/Make/argument-1-C/index.html
Parameter Make.C
A reason why a package can't be used as input to the solver. e.g. it is for a different platform, or conflicts with a user-provided constraint.
val candidates :
t ->
OpamPackage.Name.t ->
(OpamPackage.Version.t * (OpamFile.OPAM.t, rejection) result) listcandidates t name is the list of available versions of name, in order of decreasing preference. If the user or environment provides additional constraints that mean a version should be rejected, include that here too. Rejects are only used for generating diagnostics reports. Candidates whose "availablity" field isn't satisfied must be rejected here.
val user_restrictions :
t ->
OpamPackage.Name.t ->
OpamFormula.version_constraint optionuser_restrictions t pkg is the user's constraint on pkg, if any. This is just used for diagnostics; you still have to filter them out yourself in candidates.
val filter_deps :
t ->
OpamPackage.t ->
OpamTypes.filtered_formula ->
OpamTypes.formulafilter_deps t pkg f is used to pre-process depends and conflicts. pkg is the package which has the dependency f. For example, you can use this to filter out dependencies that are only needed on Windows if the platform is Linux.