OpamPath.SwitchSwitch related paths
Locations of opam internal dirs and files
val root : t -> OpamTypes.switch -> OpamTypes.dirnameThe switch prefix: $opam/$switch
The name of the subdir of the switch prefix where opam data is stored (".opam-switch")
val meta : t -> OpamTypes.switch -> OpamTypes.dirnameThe subdirectory of the prefix where opam data lives: $opam/$switch/.opam-switch
val lock : t -> OpamTypes.switch -> OpamTypes.filenamelock file: $meta/lock
val backup_dir : t -> OpamTypes.switch -> OpamTypes.dirnameThe directory where backups are stored for this switch
val backup : t -> OpamTypes.switch -> OpamTypes.switch_selections OpamFile.tBackup file for state export
val selections :
t ->
OpamTypes.switch ->
OpamTypes.switch_selections OpamFile.tSwitch selections $meta/switch-state
val build : t -> OpamTypes.switch -> OpamTypes.package -> OpamTypes.dirnameTemporary folders used to decompress and compile the corresponding archives: $meta/build/$packages
val remove : t -> OpamTypes.switch -> OpamTypes.package -> OpamTypes.dirnameTemporary folders used to decompress the corresponding archives, used only for package removal $meta/remove/$packages
val build_dir : t -> OpamTypes.switch -> OpamTypes.dirnameTemporary folder: $meta/build
val remove_dir : t -> OpamTypes.switch -> OpamTypes.dirnameTemporary folder: $meta/remove
val install :
t ->
OpamTypes.switch ->
OpamTypes.name ->
OpamFile.Dot_install.t OpamFile.tInstalled files for a given package: $meta/install/$name.install
val changes :
t ->
OpamTypes.switch ->
OpamTypes.name ->
OpamDirTrack.t OpamFile.tFile registering the changes made by the installation of the given package $meta/install/$name.changes
val install_dir : t -> OpamTypes.switch -> OpamTypes.dirnameInstalled files: $meta/install/
val reinstall : t -> OpamTypes.switch -> OpamFile.PkgList.t OpamFile.tPackages to reinstall on next upgrade: $meta/reinstall
val config_dir : t -> OpamTypes.switch -> OpamTypes.dirnameConfiguration folder: $meta/config
val switch_config :
t ->
OpamTypes.switch ->
OpamFile.Switch_config.t OpamFile.tGlobal config for the switch: $meta/switch-config
val config :
t ->
OpamTypes.switch ->
OpamTypes.name ->
OpamFile.Dot_config.t OpamFile.tPackage-specific configuration file for installed packages: $meta/config/$name.config
val sources_dir : t -> OpamTypes.switch -> OpamTypes.dirnameClean, uncompressed sources for this switch: $meta/sources/
val sources : t -> OpamTypes.switch -> OpamTypes.package -> OpamTypes.dirnameClean, uncompressed source directory for this package: $meta/sources/$name.$version/
val extra_files_dir : t -> OpamTypes.switch -> OpamTypes.dirnameTemporary switch-local directory where a by-hash map of extra files may be stored. This is used for switch-imports: $meta/extra-files-cache
val extra_file : t -> OpamTypes.switch -> OpamHash.t -> OpamTypes.filenameExtra file with the given hash from the temporary switch-import cache: $meta/extra-files-cache/HASH
val pinned_package :
t ->
OpamTypes.switch ->
OpamTypes.name ->
OpamTypes.dirnameMirror of the sources for a given pinned package: $meta/sources/$name/ (without version)
val environment : t -> OpamTypes.switch -> OpamFile.Environment.t OpamFile.tCached environment updates.
val env_relative_to_prefix :
OpamTypes.dirname ->
OpamFile.Environment.t OpamFile.tLike environment, but from the switch prefix dir
val nix_env : t -> OpamTypes.switch -> OpamFile.Environment.t OpamFile.tA Nix specific environment file
val installed_opams : t -> OpamTypes.switch -> OpamTypes.dirnameDirectory where the metadata of installed packages is mirrored. $meta/packages/
val installed_opams_cache : t -> OpamTypes.switch -> OpamTypes.filenameCache file for the mirrored installed package metadata $meta/packages/cache
val installed_package_dir :
t ->
OpamTypes.switch ->
OpamTypes.package ->
OpamTypes.dirnameThe mirror of the package definition for the given installed package $meta/packages/$name.$version/
val installed_opam :
t ->
OpamTypes.switch ->
OpamTypes.package ->
OpamFile.OPAM.t OpamFile.tThe mirror of the opam file for the given installed package $meta/packages/$name.$version/opam
val installed_opam_files_dir :
t ->
OpamTypes.switch ->
OpamTypes.package ->
OpamTypes.dirnameMirror of the extra files attached to the package definitions of installed packages $meta/packages/$name.$version/files/
Locations for the visible part of the installation
module Default : sig ... endDefault config
Fuctorised version of Default, for replicating a switch's layout in non-switch contexts
Actual config handling the global-config.config indirections
Package-independent dirs
val get_stdpath :
t ->
OpamTypes.switch ->
OpamFile.Switch_config.t ->
OpamTypes.std_path ->
OpamTypes.dirnameval lib_dir :
t ->
OpamTypes.switch ->
OpamFile.Switch_config.t ->
OpamTypes.dirnameLibrary path: $prefix/lib
val stublibs :
t ->
OpamTypes.switch ->
OpamFile.Switch_config.t ->
OpamTypes.dirnameDLL paths
val toplevel :
t ->
OpamTypes.switch ->
OpamFile.Switch_config.t ->
OpamTypes.dirnametoplevel path: $prefix/lib/toplevel
val doc_dir :
t ->
OpamTypes.switch ->
OpamFile.Switch_config.t ->
OpamTypes.dirnameDocumentation path: $prefix/doc/
Shared directory: $prefix/share
val etc_dir :
t ->
OpamTypes.switch ->
OpamFile.Switch_config.t ->
OpamTypes.dirnameEtc directory: $prefix/etc
val man_dir :
?num:string ->
t ->
OpamTypes.switch ->
OpamFile.Switch_config.t ->
OpamTypes.dirnameMan pages path: $prefix/man/. The optional num argument will add a manN suffix if specified
val man_dirs :
t ->
OpamTypes.switch ->
OpamFile.Switch_config.t ->
OpamTypes.dirname listMan pages pathes: $prefix/man/manN/
val bin :
t ->
OpamTypes.switch ->
OpamFile.Switch_config.t ->
OpamTypes.dirnameInstalled binaries: $prefix/bin
val sbin :
t ->
OpamTypes.switch ->
OpamFile.Switch_config.t ->
OpamTypes.dirnameInstalled system binaries: $prefix/sbin
Package dependent dirs
val lib :
t ->
OpamTypes.switch ->
OpamFile.Switch_config.t ->
OpamTypes.name ->
OpamTypes.dirnameLibrary path for a given package: $prefix/lib/$name
val doc :
t ->
OpamTypes.switch ->
OpamFile.Switch_config.t ->
OpamTypes.name ->
OpamTypes.dirnameDocumentation path for a given package: $prefix/doc/$name
Share directory for a given package: $prefix/share/$package
val etc :
t ->
OpamTypes.switch ->
OpamFile.Switch_config.t ->
OpamTypes.name ->
OpamTypes.dirnameEtc directory for a given package: $prefix/etc/$package
module Overlay : sig ... end