diff options
author | Sughosha <[email protected]> | 2025-02-21 14:31:55 +0530 |
---|---|---|
committer | Maxim Cournoyer <[email protected]> | 2025-02-22 23:55:24 +0900 |
commit | f2ce123d6b453d22b7751cdc9e9e98394c1bd8da (patch) | |
tree | cf03b57396c982c9255e62e6254f59cbdbb10d84 /gnu/packages/qt.scm | |
parent | fcda199a1c25a6987a1dd42285882a9e0e4da26e (diff) |
gnu: Add qcodeeditor.
* gnu/packages/qt.scm (qcodeeditor): New variable.
* gnu/packages/patches/qcodeeditor-qt6.patch: New file.
* gnu/local.mk: Register it.
Change-Id: I073bfc191d77f293afc7019d0cc2ebd460ffa58e
Diffstat (limited to 'gnu/packages/qt.scm')
-rw-r--r-- | gnu/packages/qt.scm | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index 83fb51b49c..4d527f6ce4 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -4867,6 +4867,58 @@ a binding language: @end itemize\n") (license license:lgpl3))) ;version 3 only (+ exception) +(define-public qcodeeditor + (let ((commit "dc644d41b68978ab9a5591ba891a223221570e74") ;no tags + (revision "0")) + (package + (name "qcodeeditor") + (version (git-version "0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Megaxela/QCodeEditor") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1bpvfwbgp275w79dzrd7d9k3md1ch7n88rh59mxdfj8s911n42j8")) + (patches + (search-patches "qcodeeditor-qt6.patch")))) + (build-system qt-build-system) + (arguments + (list #:qtbase qtbase + #:tests? #f ;no tests + #:configure-flags + #~(list "-DBUILD_EXAMPLE=ON" + (string-append "-DCMAKE_EXE_LINKER_FLAGS=-Wl,-rpath=" + #$output "/lib")) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'build-shared-library + (lambda _ + (substitute* "CMakeLists.txt" + (("STATIC") "SHARED")))) + ;; Install rule does not exist. + (replace 'install + (lambda _ + (install-file "example/QCodeEditorExample" + (string-append #$output "/bin")) + (install-file "libQCodeEditor.so" + (string-append #$output "/lib")) + (for-each + (lambda (file) + (install-file file + (string-append #$output + "/include/QCodeEditor"))) + (find-files "../source/include/internal" "\\.hpp"))))))) + (inputs + (list qtwayland)) + (home-page "https://github.com/Megaxela/QCodeEditor") + (synopsis "Qt code editor widget") + (description + "QCodeEditor is a Qt widget for editing/viewing code.") + (license license:expat)))) + (define-public qtcolorwidgets (package (name "qtcolorwidgets") |