aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-01-22 17:20:21 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-01-22 17:20:21 +0100
commit32f31a8c63d35a8ecfd341802465afacbe8d5759 (patch)
treeea37e304ef4d4cde34934084a2f4360f5713275a /src/libexpr
parent543288b6494f14fe09f72afe37290ee7e97e69a1 (diff)
nix flake info: Don't show empty descriptions
Diffstat (limited to 'src/libexpr')
-rw-r--r--src/libexpr/flake/flake.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/flake/flake.hh b/src/libexpr/flake/flake.hh
index d44113506..afd49436b 100644
--- a/src/libexpr/flake/flake.hh
+++ b/src/libexpr/flake/flake.hh
@@ -33,7 +33,7 @@ struct Flake
{
FlakeRef originalRef;
FlakeRef resolvedRef;
- std::string description;
+ std::optional<std::string> description;
std::shared_ptr<const fetchers::Tree> sourceInfo;
std::map<FlakeId, FlakeInput> inputs;
Value * vOutputs; // FIXME: gc