aboutsummaryrefslogtreecommitdiff
path: root/src/nix/installables.cc
diff options
context:
space:
mode:
authorNick Van den Broeck <nick.van.den.broeck666@gmail.com>2019-03-21 09:30:16 +0100
committerNick Van den Broeck <nick.van.den.broeck666@gmail.com>2019-04-11 14:34:04 +0200
commit4bf3a8226badcdc70c013dfcfa266ee72f6cb89b (patch)
tree44d95c12609ad68b943ea73cb8c55123c7e8333b /src/nix/installables.cc
parent87033f2c4e32f4851e8c2abf8ab3b56444b65590 (diff)
Automated lockfile updating with `nix build`
Diffstat (limited to 'src/nix/installables.cc')
-rw-r--r--src/nix/installables.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nix/installables.cc b/src/nix/installables.cc
index e792ce96d..43e15849b 100644
--- a/src/nix/installables.cc
+++ b/src/nix/installables.cc
@@ -176,6 +176,14 @@ struct InstallableFlake : InstallableValue
state.forceValue(*v);
return v;
}
+
+ std::optional<std::string> installableToFlakeUri() override
+ {
+ if (std::get_if<FlakeRef::IsPath>(&flakeRef.data))
+ return flakeRef.to_string();
+ else
+ return std::nullopt;
+ }
};
// FIXME: extend