aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-06-02 13:30:54 +0200
committerGitHub <noreply@github.com>2021-06-02 13:30:54 +0200
commitf1b604f603ad80d775f5855dee085b9d5261bafe (patch)
treed9435d00e32722c89af920419bad6db6439d74c6
parent7c3cb8506fb3046cb97e1b98f3b1195d45c500f3 (diff)
parent50dc88a56cc13030801bfefc7116828d4115ae70 (diff)
Merge pull request #4879 from keke-cute/fix-optional-namespace
Fix error: 'optional' in namespace 'std' does not name a template type
-rw-r--r--src/libfetchers/attrs.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libfetchers/attrs.hh b/src/libfetchers/attrs.hh
index a2d53a7bf..e41037633 100644
--- a/src/libfetchers/attrs.hh
+++ b/src/libfetchers/attrs.hh
@@ -6,6 +6,8 @@
#include <nlohmann/json_fwd.hpp>
+#include <optional>
+
namespace nix::fetchers {
typedef std::variant<std::string, uint64_t, Explicit<bool>> Attr;