diff options
| author | Philippe SWARTVAGHER <phil.swart@gmx.fr> | 2026-01-17 19:15:29 +0100 |
|---|---|---|
| committer | Rutherther <rutherther@ditigal.xyz> | 2026-01-25 21:25:00 +0100 |
| commit | 664aca5c8fa7298da588848b122a8a67d172ff3b (patch) | |
| tree | c5f75d7f6b327f4362f1732e19df7fbb47d87ceb /gnu | |
| parent | ce3d9e8498ec22299ab77503a938bf4ea0a206bc (diff) | |
gnu: sqlitebrowser: Use system nlohmann-json.
* gnu/packages/databases.scm (sqlitebrowser):
[source]: Remove bundled nlohmann-json and patch includes.
[native-inputs]: Add nlohmann-json (header-only library).
Change-Id: I80036372a51073b8f891a260d6a4531a6bd65cf8
Signed-off-by: Andreas Enge <andreas@enge.fr>
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/databases.scm | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index c4b5f75ac71..c42b69f7c20 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -5912,13 +5912,26 @@ a Gtk.Grid Widget.") (modules '((guix build utils))) (snippet '(begin - (delete-file-recursively "libs/qcustomplot-source/") - (delete-file-recursively "libs/qhexedit/") - (delete-file-recursively "libs/qscintilla"))))) + ;; Delete bundled dependencies, available as Guix packages. + (for-each delete-file-recursively + (list "libs/json" + "libs/qcustomplot-source" + "libs/qhexedit" + "libs/qscintilla")) + ;; Patch #includes to be able to use Guix's nlohmann-json + (with-directory-excursion "src" + (substitute* (list "RemoteCommitsModel.h" + "RemoteLocalFilesModel.h" + "RemoteModel.h" + "RemotePushDialog.cpp" + "RemoteNetwork.cpp" + "RemoteDock.cpp" + "ExportDataDialog.cpp" + "EditDialog.cpp") + (("json\\.hpp") "nlohmann/json.hpp"))))))) (build-system qt-build-system) (arguments (list #:configure-flags - ;; TODO: Unbundle json (nlohmann-json). #~(list (string-append "-DQSCINTILLA_INCLUDE_DIR=" #$(this-package-input "qscintilla") "/include/Qsci") @@ -5932,7 +5945,7 @@ a Gtk.Grid Widget.") qtbase-5 qtwayland-5 sqlite)) - (native-inputs (list qttools-5)) + (native-inputs (list nlohmann-json qttools-5)) (home-page "https://sqlitebrowser.org/") (synopsis "Visual database browser and editor for SQLite") (description "Sqlitebrowser lets you create, design, and edit database files |
