with-inputs icon indicating copy to clipboard operation
with-inputs copied to clipboard

tack cant resolve inputs for flakes

Open unazikx opened this issue 1 month ago • 4 comments

Image

hi again, i launched write tack and evaluated this, but nix repl gives this error

as i know i shows eg

inputs.umbriel.inputs.xdg-desktop-portal not set

how we can auto download this dependencies?

unazikx avatar Oct 14 '26 06:10 unazikx

https://github.com/unazikx/flake/tree/slave/.tack

here is files, test this please

replace in ${self}/default.nix from.tack and go

unazikx avatar Oct 14 '26 06:10 unazikx

Image

ifdk why, but it happens only with stylix and winapps

unazikx avatar Oct 14 '26 07:10 unazikx

also with tack sub inputs empty Image

with lon sub inputs containing Image

unazikx avatar Oct 14 '26 07:10 unazikx

The difference is due only because lon.lock contains an entry for optnix. with-inputs only fetch first order dependencies and fill downstream dependencies with entries from sources/inputsOverrrides, anything missing further down need to be added in follows.nix, eg in you case (for tack):

# follows.nix
inputs: {
  inherit (inputs.with-inputs.from.flake inputs.nixos-cli { }) optnix;
}

Though I think when a dependency is missing, throwing an error with a message indicating the above would be better than using an empty set.

jbgi avatar Oct 18 '26 08:10 jbgi