Skip to content

feat(flake): expose ab as a package output and derive names/versions from Cargo.toml, make ab default package - #19

Merged
0xferrous merged 2 commits into
0xferrous:mainfrom
nothingnesses:feat/expose-ab-in-flake
Mar 18, 2026
Merged

feat(flake): expose ab as a package output and derive names/versions from Cargo.toml, make ab default package#19
0xferrous merged 2 commits into
0xferrous:mainfrom
nothingnesses:feat/expose-ab-in-flake

Conversation

@nothingnesses

@nothingnesses nothingnesses commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

What

  • Adds ab to packages so it can be consumed by downstream flakes without inlining their own buildRustPackage definition
  • Replaces hardcoded pname and version strings across all packages with values read from Cargo.toml via builtins.fromTOML, so version bumps only need to happen in one place
  • Uses rec in each derivation to reference pname in cargo flags, avoiding repetition
  • Fixes mdbook-excalidraw package output, which was incorrectly referencing pkgs.mdbook-excalidraw (doesn't exist in nixpkgs) instead of the local derivation
  • make ab default nix package

Why

As you know, agent-images uses agent-box as one of its inputs and exposes ab in its dev shell. Currently agent-images has to vendor its own buildRustPackage definition for ab because the flake for agent-box doesn't expose it as an output. With this change, agent-images can simply reference agent-box.packages.${system}.ab directly.

@nothingnesses
nothingnesses force-pushed the feat/expose-ab-in-flake branch 3 times, most recently from c9635ec to 5700db8 Compare March 17, 2026 22:48
…toml

Add ab as a flake package output so downstream consumers can reference it
directly without inlining their own buildRustPackage definition. Replace
hardcoded pname and version strings across all packages with values read from
Cargo.toml via builtins.fromTOML, and use rec to reference pname in cargo
flags to avoid repetition. Also fix mdbook-excalidraw package reference which
incorrectly pointed to pkgs instead of the local derivation.
@nothingnesses
nothingnesses force-pushed the feat/expose-ab-in-flake branch from 5700db8 to 8ab6c3c Compare March 17, 2026 22:53
@0xferrous 0xferrous changed the title feat(flake): expose ab as a package output and derive names/versions from Cargo.toml feat(flake): expose ab as a package output and derive names/versions from Cargo.toml, make ab default package Mar 18, 2026
@0xferrous
0xferrous merged commit 37e4f43 into 0xferrous:main Mar 18, 2026
5 checks passed
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.

2 participants