aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nix2/driver.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/nix2/driver.go b/nix2/driver.go
index b5650d6..3fe052f 100644
--- a/nix2/driver.go
+++ b/nix2/driver.go
@@ -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]
}
}