From 799691beac9692ba5928075b4a6ec5f06dfb3988 Mon Sep 17 00:00:00 2001 From: Marek Paśnikowski Date: Tue, 26 Mar 2024 02:08:20 +0100 Subject: qtgeneratorcmake: implement package definition: dependency of qaterial, needed for komodo --- packages/komodo/qtgeneratorcmake.scm | 73 ++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 packages/komodo/qtgeneratorcmake.scm (limited to 'packages/komodo') diff --git a/packages/komodo/qtgeneratorcmake.scm b/packages/komodo/qtgeneratorcmake.scm new file mode 100644 index 0000000..c30dd8e --- /dev/null +++ b/packages/komodo/qtgeneratorcmake.scm @@ -0,0 +1,73 @@ +(define-module (qtgeneratorcmake) + #:use-module (guix build-system cmake) + #:use-module (guix git-download) + #:use-module ((guix licenses) + #:prefix license:) + #:use-module (guix packages)) + +;; DATA LAYER + +(define hash + (base32 "129ryyww6wd06ni4f7kcf91qr7a7fpc58kic4cvvgyczfrgswgd2")) + +(define name + "qtgeneratorcmake") + +(define description + (string-append "Collection of CMake function to generate qrc, qmldir files " + "for qt applications.")) + +(define home-page + "https://github.com/OlivierLDff/QtGeneratorCMake") + +(define synopsis + (string-append "Collection of CMake function to generate qrc, qmldir files " + "for qt applications.")) + +(define tests? + #f) + +(define url + "https://github.com/OlivierLDff/QtGeneratorCMake.git") + +(define version + "v1.0.0") + +;; ABSTRACTION LAYER -2 + +(define delete-install + '(delete 'install)) + +;; ABSTRACTION LAYER -1 + +(define phases + `(modify-phases %standard-phases + ,delete-install)) + +(define uri + (git-reference (url url) + (commit version))) + +;; ABSTRACTION LAYER -0 + +(define arguments + (list #:phases phases + #:tests? tests?)) + +(define source + (origin (uri uri) + (method git-fetch) + (sha256 hash))) + +;; SURFACE LAYER + +(define-public qtgeneratorcmake + (package (name name) + (version version) + (source source) + (build-system cmake-build-system) + (arguments arguments) + (synopsis synopsis) + (description description) + (license license:expat) + (home-page home-page))) -- cgit v1.2.3