feat(nix): declare uv tools, install graphify with the [sql] extra - #25
Open
tomfordweb wants to merge 1 commit into
Open
feat(nix): declare uv tools, install graphify with the [sql] extra#25tomfordweb wants to merge 1 commit into
tomfordweb wants to merge 1 commit into
Conversation
graphify was an undeclared uv tool: nothing in the repo recorded it, and the
install on this machine lacks the [sql] extra, so every .sql file is dropped
from the graph ('tree_sitter_sql not installed', 73 files in andromeda).
graphifyy has no nixpkgs attribute and packaging it would mean packaging
every tree-sitter grammar it pulls, so this follows pnpm-globals.nix: nix owns
the list, uv owns the versions. A spec stamp under ~/.local/state/uv-tools
triggers a reinstall when the spec changes, which a bin-presence check alone
would miss — exactly the case here, where the binary exists but the extra
does not.
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.
graphify was an undeclared uv tool — nothing in the repo recorded it, and the install on this machine lacks the
[sql]extra, so every.sqlfile is silently dropped from the graph (tree_sitter_sql not installed, 73 files in andromeda).graphifyyhas no nixpkgs attribute, and packaging it as abuildPythonApplicationwould mean packaging every tree-sitter grammar it pulls, for a tool that ships working wheels. So this followspnpm-globals.nix: nix owns the list, uv owns the versions.nixos/home/uv-tools.nix—home.packages = [ uv ], an activation that installs any declared tool, and a generateduv-tools-update.~/.local/state/uv-toolsdecides when to reinstall. A bin-presence check alone would never repair this machine:graphifyexists, only the extra is missing.Verified:
nix build .#nixosConfigurations.minerva.config.system.build.toplevelsucceeds. Not switched — that is yours to run (sudo nixos-rebuild switch), after whichgraphify update .picks up the .sql files.