about summary refs log tree commit diff stats
path: root/internal/importer
diff options
context:
space:
mode:
Diffstat (limited to 'internal/importer')
-rw-r--r--internal/importer/channel.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/importer/channel.go b/internal/importer/channel.go
index 97f0a27..70aa9de 100644
--- a/internal/importer/channel.go
+++ b/internal/importer/channel.go
@@ -45,6 +45,10 @@ func (i *ChannelImporter) FetchIfNeeded(parent context.Context) (bool, error) {
 		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()