all repos — searchix @ fe79b4509dd580542fa28186673826df603677bb

Search engine for NixOS, nix-darwin, home-manager and NUR users

feat: enable using channel URLs if unable to resolve via NIX_PATH

Alan Pearce
commit

fe79b4509dd580542fa28186673826df603677bb

parent

2e56008ef28109f0895b5918e2d0caeb16a08d8a

1 file changed, 4 insertions(+), 0 deletions(-)

changed files
M internal/importer/channel.gointernal/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()