Skip to content

with-inputs

with-inputs bridges the gap between flake and non-flake Nix. It provides flake-compatible input resolution without requiring flake.nix:

let
sources = import ./npins;
with-inputs = import ./with-inputs.nix;
outputs = inputs: { };
in
with-inputs sources { } outputs

It is not an inputs lock mechanism or fetcher — those already exist (npins, unflake, nixlock, nixtamal). with-inputs handles resolution: follows, overrides, and inputs.self.

  • Full flake-compatible follows and nested follows
  • Per-sub-input overrides and local checkout support
  • inputs.self available just like in flakes
  • Dependency introspection
  • Works with npins, unflake, or any source-fetching mechanism
  • Compatible with flake-file for input management

with-inputs completes the Dendritic ecosystem’s “no flakes required” story. Combined with flake-file (which can populate npins) and import-tree, you get a fully Dendritic setup running on stable Nix without any experimental features.

Source Code Support this project
Hire Vic Consultancy Sponsor