aboutsummaryrefslogtreecommitdiff
path: root/src/nix/installables.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-08-10 11:34:41 +0200
committerEelco Dolstra <edolstra@gmail.com>2018-08-10 11:34:41 +0200
commitf72c907ad833fa26800ad1694e63f3cec952b444 (patch)
tree9214fe93db13ba5ae912a88a7bfa2417420b96ad /src/nix/installables.cc
parentada4e902672e4d82f47fa260adcc450d9a85d41f (diff)
Slightly questionable workaround for #2342
Diffstat (limited to 'src/nix/installables.cc')
-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 0be992b03..0c1ad3ab3 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}}}};
}
};