Don't add <nixpkgs># if package already contains /

This commit is contained in:
Alex 2022-11-29 13:51:02 +01:00
parent c0af0b632d
commit d13a77952c
Signed by: lx
GPG key ID: 0E496D15096376BE

View file

@ -510,7 +510,7 @@ func (d *Driver) StartTask(cfg *drivers.TaskConfig) (*drivers.TaskHandle, *drive
} }
// Use that repo for all packages not specified from a flake already. // Use that repo for all packages not specified from a flake already.
for i := range driverConfig.Packages { for i := range driverConfig.Packages {
if !strings.Contains(driverConfig.Packages[i], "#") { if !strings.Contains(driverConfig.Packages[i], "#") && !strings.Contains(driverConfig.Packages[i], "/") {
driverConfig.Packages[i] = nixpkgs + "#" + driverConfig.Packages[i] driverConfig.Packages[i] = nixpkgs + "#" + driverConfig.Packages[i]
} }
} }