meson: simplify dependencies
Leverage wrapfile `[provide]` directives to simplify the dependency
searching in the meson.build.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I5bbde5732df9604b6ea45eaae519bdf64c27ee3c
diff --git a/subprojects/nlohmann.wrap b/subprojects/nlohmann.wrap
index f1c5df4..477e844 100644
--- a/subprojects/nlohmann.wrap
+++ b/subprojects/nlohmann.wrap
@@ -1,5 +1,6 @@
-[wrap-file]
-source_url = https://github.com/nlohmann/json/releases/download/v3.9.1/include.zip
-source_filename = nlohmann-json-v3.9.1-include.zip
-source_hash = 6bea5877b1541d353bd77bdfbdb2696333ae5ed8f9e8cc22df657192218cad91
-lead_directory_missing = nlohmann-json-v3.9.1
+[wrap-git]
+url = https://github.com/nlohmann/json
+revision = HEAD
+
+[provide]
+nlohmann_json = nlohmann_json_dep