Don't add <nixpkgs># if package already contains /
This commit is contained in:
parent
c0af0b632d
commit
d13a77952c
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
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]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue