Skip to content

improvements - #48

Closed
jbadeau wants to merge 86 commits into
mainfrom
improvements
Closed

improvements#48
jbadeau wants to merge 86 commits into
mainfrom
improvements

Conversation

@jbadeau

@jbadeau jbadeau commented Apr 28, 2026

Copy link
Copy Markdown
Owner

No description provided.

jbadeau and others added 25 commits September 14, 2025 12:07
- Fix backend_list_versions to return empty list when package not found
  in nixhub, allowing flake reference versions to work
- Remove ghe+ and gli+ prefix support (use https+ instead)
- Fix nested path support for github+ and gitlab+ prefixes
- Fix Lua pattern bug (| doesn't work as alternation in Lua)
- Simplify parse_git_ref_syntax (Nix handles URL formats natively)
- Add unit tests for custom git prefix conversions
- Add e2e tests for GitLab sources and https+ syntax
Add a new environment subsystem that exposes runtime env vars (JAVA_HOME,
GOROOT, MANPATH, etc.) from Nix packages, with profile-based multi-output
linking.

Key changes:
- nix_env.lua: caches `nix print-dev-env` at install time, reads instantly
  at exec time. Filters build-time vars, merges runtime vars on top of
  PATH fallback. Store-path hints for JAVA_HOME/GOROOT.
- output_join.lua: profile-based linking (runtime/dev) of common subpaths
  (bin, share/man, share/doc, completions, etc.) from all nix outputs.
- backend_exec_env.lua: uses nix_env.for_context() with pcall fallback.
- install.lua: calls output_join and env cache after build.

Config: MISE_NIX_ENV_MODE (auto/dev-env/path-only),
MISE_NIX_LINK_PROFILE (runtime/dev), MISE_NIX_LINK_PATHS override.
@jbadeau jbadeau closed this Apr 28, 2026
@jbadeau
jbadeau deleted the improvements branch April 28, 2026 13:03
@jbadeau
jbadeau restored the improvements branch April 28, 2026 13:03
@jbadeau
jbadeau deleted the improvements branch April 28, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants