root: fix ROOTConfig.cmake.in patching

This commit is contained in:
Dmitry Kalinkin 2022-03-04 21:04:19 -05:00
parent cf805d3b9e
commit 149d68268d
No known key found for this signature in database
GPG Key ID: 5157B3EC8B2CA333

View File

@ -107,7 +107,7 @@ stdenv.mkDerivation rec {
# Hardcode path to fix use with cmake
sed -i cmake/scripts/ROOTConfig.cmake.in \
-e 'iset(nlohmann_json_DIR "${nlohmann_json}/lib/cmake/nlohmann_json/")'
-e '1iset(nlohmann_json_DIR "${nlohmann_json}/lib/cmake/nlohmann_json/")'
patchShebangs build/unix/
'' + lib.optionalString noSplash ''