JuNix
types
Julia2Nix.JuNix.collect_registries
— Functioncollect_registries()
Collect registries from PkgInfo
Julia2Nix.JuNix.get_tarball_registry_path
— Functionget_tarball_registry_path(path)
Get tarball path from path.toml
Julia2Nix.JuNix.extract_tarball
— Functionextract_tarball(tarball_path, dir)
Extract tar file
Julia2Nix.JuNix.registry_relpath
— Functionregistry_relpath(reg::RegistryInfo)
Get registry real path
fetch
Julia2Nix.JuNix.is_artifact_required
— Functionis_artifact_required(artifact::ArtifactInfo, opts::Options)
Return a bool
By matching lazy_matches
, system_matches
in artifact and opts
Julia2Nix.JuNix.select_fetcher
— Functionselect_fetcher(fetchers::Vector{Fetcher}, opts::Options)
Return the right fetcher by comparing sha256
util
Julia2Nix.JuNix.get_archive_url_for_version
— Functionget_archive_url_for_version(url::String, ref)
Return archieve url use git url
Julia2Nix.JuNix.get_pkg_url
— Functionget_pkg_url(uuid::UUID, tree_hash::String)
Generate url by format with uuid and treehash
Julia2Nix.JuNix.get_source_path
— Functionget_source_path(ctx::Context, name::String, uuid::UUID, tree_hash::SHA1)
Get source real path
Julia2Nix.JuNix.convert_sha256
— Functionconvert_sha256(data::String, base::Symbol)
Convert sha256 with nix-hash
Julia2Nix.JuNix.fetch_sha256
— Functionfetch_sha256(fetcher::Fetcher, opts::Options)
Prefetch sha256 with nix-prefetch
Julia2Nix.JuNix.get_os_from_opts
— Functionget_os_from_opts(opts::Options)
Get arch
and os
from opts
Julia2Nix.JuNix.is_git_repo
— Functionis_git_repo(path::String)
Return bool
, is path
a git repo
Julia2Nix.JuNix.get_repo_meta
— Functionget_repo_meta(path::String)
Get repo meta by path
(git repo)
JuNix
Julia2Nix.JuNix.load_registries!
— Functionload_registries!(pkgs::Vector{PackageInfo})
Load registries from Registry.toml
.
Julia2Nix.JuNix.load_artifacts!
— Functionload_artifacts!(pkginfo::PackageInfo)
Write meta to PackageInfo
from toml
Julia2Nix.JuNix.write_julia2nix
— Functionwrite_julia2nix(depot, opts, package_path, name)
Write julia2nix.toml
to out_path
Julia2Nix.JuNix.generate_depot
— Functiongenerate_depot(registry_fetchers, pkg_fetchers ,artifact_fetchers)
generate depot
by registry
pkg
and artifact