Skip to content

Proposal: mechanism for doing environment setupΒ #312

@alecthomas

Description

@alecthomas

Hermit currently performs no custom actions on environment activation.

However, it is not uncommon to want to perform additional tasks within an environment before it becomes usable, beyond just installing the package. Some examples of this are creating a .venv for Python, perhaps running rustup to install a Rust toolchain, and so on.

Probably the simplest approach is to allow hooks in bin/hermit.hcl, eg.

// Run once on environment "initialisation", whatever that means? This concept does not exist yet.
on setup {
  run { command = "..." }
}

// Run on every activation? Is that a good idea?
on activate {
  run { command = "..." }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions