about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-08-10T09·34+0200
committerEelco Dolstra <edolstra@gmail.com>2018-08-10T09·34+0200
commitf72c907ad833fa26800ad1694e63f3cec952b444 (patch)
tree9214fe93db13ba5ae912a88a7bfa2417420b96ad /src
parentada4e902672e4d82f47fa260adcc450d9a85d41f (diff)
Slightly questionable workaround for #2342
Diffstat (limited to 'src')
-rw-r--r--src/nix/installables.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/installables.cc b/src/nix/installables.cc
index 0be992b03c5a..0c1ad3ab3db0 100644
--- a/src/nix/installables.cc
+++ b/src/nix/installables.cc
@@ -96,7 +96,7 @@ struct InstallableStorePath : Installable
 
     Buildables toBuildables() override
     {
-        return {{"", {{"out", storePath}}}};
+        return {{isDerivation(storePath) ? storePath : "", {{"out", storePath}}}};
     }
 };