Skip to content

feat(nix): declare uv tools, install graphify with the [sql] extra - #25

Open
tomfordweb wants to merge 1 commit into
mainfrom
feat/uv-tools-graphify
Open

feat(nix): declare uv tools, install graphify with the [sql] extra#25
tomfordweb wants to merge 1 commit into
mainfrom
feat/uv-tools-graphify

Conversation

@tomfordweb

Copy link
Copy Markdown
Owner

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 silently dropped from the graph (tree_sitter_sql not installed, 73 files in andromeda).

graphifyy has no nixpkgs attribute, and packaging it as a buildPythonApplication would mean packaging every tree-sitter grammar it pulls, for a tool that ships working wheels. So this follows pnpm-globals.nix: nix owns the list, uv owns the versions.

  • nixos/home/uv-tools.nixhome.packages = [ uv ], an activation that installs any declared tool, and a generated uv-tools-update.
  • A spec stamp under ~/.local/state/uv-tools decides when to reinstall. A bin-presence check alone would never repair this machine: graphify exists, only the extra is missing.

Verified: nix build .#nixosConfigurations.minerva.config.system.build.toplevel succeeds. Not switched — that is yours to run (sudo nixos-rebuild switch), after which graphify update . picks up the .sql files.

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.
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.

1 participant