hetrix

source-based package manager · v1.3

index.json – the package registry

every package hetrix knows about lives here.

example entry (all fields)

{
  "myapp": {
    "url":           "https://github.com/user/myapp",
    "pull_type":     "git",
    "build":         "cmake",
    "args":          "-DCMAKE_BUILD_TYPE=Release",
    "main":          "",
    "sub_dir":       "cli",
    "build_dir":     "",
    "output":        "myapp",
    "version":       "v2.1.0",
    "auto_add_cmds": "1",
    "no_extra_args": false,
    "description":   "my cool app",
    "install_cmd":   "",
    "sha256":        "",
    "sha512":        ""
  }
}

required fields

  • url – git repo, tarball, or direct binary

pull_type defaults to auto (git for github, else curl)

build field

set to one of: cmake, make, autoconf, gcc, g++, meson, cargo, go, zig, dune, python, node, ruby, bash, auto

verification

sha256 / sha512 – checksum of downloaded file or git tree.

set require_sha_for_curl in cfg.toml to enforce.