diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/komodo/sortfilterproxymodel.scm | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/packages/komodo/sortfilterproxymodel.scm b/packages/komodo/sortfilterproxymodel.scm new file mode 100644 index 0000000..2ec7967 --- /dev/null +++ b/packages/komodo/sortfilterproxymodel.scm @@ -0,0 +1,83 @@ +(define-module (sortfilterproxymodel) + #: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-lines + (list "SortFilterProxyModel is an implementation of QSortFilterProxyModel " + "conveniently exposed for QML.")) + +(define hash + "0953rb1ylx8havjdk6r5bnassllbbdvl5qg55kknvcvdz398z32f") + +(define home-page + "https://github.com/OlivierLDff/SortFilterProxyModel") + +(define name + "SortFilterProxyModel") + +(define synopsis-lines + (list "A nicely exposed QSortFilterProxyModel for QML")) + +(define test-target? + #f) + +(define version + "master") + +;; ABSTRACTION LAYER -2 + +(define delete-install + '(delete 'install)) + +;; ABSTRACTION LAYER -1 + +(define no-install + `(modify-phases %standard-phases + ,delete-install)) + +(define origin-uri + (git-reference (url home-page) + (commit version))) + +(define sha256 + (content-hash (base32 hash))) + +;; ABSTRACTION LAYER -0 + +(define arguments + (list #:phases no-install + #:tests? test-target?)) + +(define description + (string-concatenate description-lines)) + +(define inputs + (list qtbase-5 qtdeclarative-5)) + +(define source + (origin (uri origin-uri) + (method git-fetch) + (hash sha256))) + +(define synopsis + (string-concatenate synopsis-lines)) + +;; SURFACE LAYER + +(define-public sortfilterproxymodel + (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))) |