feat: enable using channel URLs if unable to resolve via NIX_PATH
1 file changed, 4 insertions(+), 0 deletions(-)
changed files
M internal/importer/channel.go → internal/importer/channel.go
@@ -45,6 +45,10 @@ "--out-link", dest, } + if i.Source.URL != "" { + args = append(args, "-I", fmt.Sprintf("%s=%s", i.Source.Channel, i.Source.URL)) + } + i.Logger.Debug("nix-build command", "args", args) cmd := exec.CommandContext(ctx, "nix-build", args...) out, err := cmd.Output()