From 5f75d56c9bb4937b7cc9b7f20b31ef151adf4497 Mon Sep 17 00:00:00 2001
From: Eelco Dolstra <edolstra@gmail.com>
Date: Sat, 28 Mar 2020 16:51:10 +0100
Subject: [PATCH] flake.nix: Support Nixpkgs 19.09

---
 flake.nix | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/flake.nix b/flake.nix
index b100b8a99..8851bc3bf 100644
--- a/flake.nix
+++ b/flake.nix
@@ -76,6 +76,9 @@
             openssl pkgconfig sqlite
             libarchive
             boost
+            (if lib.versionAtLeast lib.version "20.03pre"
+             then nlohmann_json
+             else nlohmann_json.override { multipleHeaders = true; })
             nlohmann_json
             rustc cargo
 
-- 
GitLab