Expose custom packages as flake outputs#285
Open
crdant wants to merge 2 commits into
Open
Conversation
Adds a packages output for aarch64-darwin and x86_64-linux, sourced from pkgs/default.nix. Darwin-only packages (vimr, icalpal) and aarch64-only packages (mlx-lm) are gated with lib.optionalAttrs so they don't appear for unsupported systems. Also adds exa-py (previously defined but not wired in), removes the broken llmPlugins reference (directory never existed), and fixes a missing pyproject = true in mlx-lm that prevented evaluation.
The vimr package now accepts neovim ? null and handles CLI wrapping
itself: when neovim is provided it runs makeWrapper with the package's
wrapperArgs and packpathDirs; when not, it symlinks the raw CLI.
Adds meta.mainProgram so nix run works.
Replaces the separate vimr-wrapper.nix derivation with a simple
vimr.override { neovim = config.programs.neovim.finalPackage; }
at the call site.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
packages.aarch64-darwinandpackages.x86_64-linuxoutputs to the flake, sourced frompkgs/default.nix. Packages are now reachable vianix build .#kots,nix run .#replicated, etc., and can be consumed by other flakes directly or via the existingoverlays.additionsoverlay.vimr,icalpal) and aarch64-darwin-only packages (mlx-lm) are gated withlib.optionalAttrsso they don't appear for unsupported systems.exa-py(defined but previously not wired intopkgs/default.nix), removes the brokenllmPluginsreference (directory never existed), and fixes a missingpyproject = trueinmlx-lmthat prevented flake evaluation.neovim ? nullargument) rather than a separatevimr-wrapper.nixderivation. The call site becomesvimr.override { neovim = config.programs.neovim.finalPackage; }. Addsmeta.mainProgramsonix run .#vimrworks for the unwrapped case.