aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/flake
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-10-21 22:11:21 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-10-21 22:11:21 +0200
commit45b740c18b196d0326a94df23d08fa3d68e0863f (patch)
tree50e93b944d164dd6a26ac44151aedb24c5e7ca45 /src/libexpr/flake
parentcb1a79a96aa0602383f2fe33702f6adeee708922 (diff)
Use upstream json_fwd.hpp to speed up compilation
Diffstat (limited to 'src/libexpr/flake')
-rw-r--r--src/libexpr/flake/lockfile.cc2
-rw-r--r--src/libexpr/flake/lockfile.hh2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/libexpr/flake/lockfile.cc b/src/libexpr/flake/lockfile.cc
index 2c3f3c93d..5693e57dc 100644
--- a/src/libexpr/flake/lockfile.cc
+++ b/src/libexpr/flake/lockfile.cc
@@ -1,6 +1,8 @@
#include "lockfile.hh"
#include "store-api.hh"
+#include <nlohmann/json.hpp>
+
namespace nix::flake {
LockedInput::LockedInput(const nlohmann::json & json)
diff --git a/src/libexpr/flake/lockfile.hh b/src/libexpr/flake/lockfile.hh
index ab81eac8b..757c37989 100644
--- a/src/libexpr/flake/lockfile.hh
+++ b/src/libexpr/flake/lockfile.hh
@@ -2,7 +2,7 @@
#include "flakeref.hh"
-#include <nlohmann/json.hpp>
+#include <nlohmann/json_fwd.hpp>
namespace nix {
class Store;