From 5f6fcb633b5b907694545722ca6327aa9f114645 Mon Sep 17 00:00:00 2001 From: Marek Paśnikowski Date: Tue, 26 Mar 2024 01:30:10 +0100 Subject: qolm: implement package: dependency of qaterial, needed for komodo --- packages/komodo/qolm.scm | 69 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 packages/komodo/qolm.scm (limited to 'packages/komodo/qolm.scm') diff --git a/packages/komodo/qolm.scm b/packages/komodo/qolm.scm new file mode 100644 index 0000000..ca68f9e --- /dev/null +++ b/packages/komodo/qolm.scm @@ -0,0 +1,69 @@ +(define-module (qolm) + #:use-module (gnu packages qt) + #:use-module (guix build-system cmake) + #:use-module (guix git-download) + #:use-module ((guix licenses) + #:prefix license:) + #:use-module (guix packages)) + +;; DATA LAYER + +(define description + (string-append "qolm::QOlm object based on QAbstractListModel that provide a " + "list of QObject based class to qml and c++. The model " + "dynamically update views by reacting to insert, remove, move " + "operations.")) + +(define hash + (base32 "1rxw6lwv3gbgscnlz7njrs8yd21svqq0qpwiggnyrlbk5j85n7d7")) + +(define home-page + "https://olivierldff.github.io/QOlm/") + +(define inputs + (list qtbase-5 qtdeclarative-5)) + +(define name + "qolm") + +(define synopsis + "🧱 QAbstractListModel subclass that provide List of QObject to C++ and Qml.") + +(define tests? + #f) + +(define url + "https://github.com/OlivierLDff/QOlm.git") + +(define version + "v3.2.1") + +;; ABSTRACTION LAYER -1 + +(define uri + (git-reference (url url) + (commit version))) + +;; ABSTRACTION LAYER -0 + +(define arguments + (list #:tests? tests?)) + +(define source + (origin (uri uri) + (method git-fetch) + (sha256 hash))) + +;; SURFACE LAYER + +(define-public qolm + (package (name name) + (version version) + (source source) + (build-system cmake-build-system) + (arguments arguments) + (inputs inputs) + (synopsis synopsis) + (description description) + (license license:expat) + (home-page home-page))) -- cgit v1.2.3