Merge branch 'master' into staging
[jackhill/guix/guix.git] / gnu / packages / pantheon.scm
CommitLineData
9f59a9b4
RP
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2020 Ryan Prior <rprior@protonmail.com>
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19(define-module (gnu packages pantheon)
969811ad 20 #:use-module (gnu packages cmake)
9f59a9b4
RP
21 #:use-module (gnu packages gettext)
22 #:use-module (gnu packages glib)
23 #:use-module (gnu packages gnome)
24 #:use-module (gnu packages gtk)
25 #:use-module (gnu packages pkg-config)
26 #:use-module (gnu packages)
27 #:use-module (guix build-system meson)
28 #:use-module (guix git-download)
29 #:use-module ((guix licenses) :prefix license:)
30 #:use-module (guix packages)
31 #:use-module (guix utils))
32
33(define-public granite
34 (package
35 (name "granite")
36 (version "5.4.0")
37 (source (origin
38 (method git-fetch)
39 (uri (git-reference
40 (url "https://github.com/elementary/granite.git")
41 (commit version)))
42 (file-name (git-file-name name version))
43 (sha256
44 (base32
45 "0acicv3f9gksb352v88lwap8ailjsxdrfknl2xql7blasbjzl2q0"))))
46 (build-system meson-build-system)
47 (arguments
48 `(#:phases
49 (modify-phases %standard-phases
50 (add-after 'unpack 'disable-icon-cache
51 (lambda _
52 (setenv "DESTDIR" "/")
53 #t)))))
54 (inputs
ef3cd15e
DM
55 `(("glib" ,glib)
56 ("gtk" ,gtk+)
57 ("libgee" ,libgee)))
9f59a9b4
RP
58 (native-inputs
59 `(("gettext" ,gettext-minimal)
9f59a9b4 60 ("gobject-introspection" ,gobject-introspection)
9f59a9b4
RP
61 ("pkg-config" ,pkg-config)
62 ("vala" ,vala)))
63 (home-page "https://github.com/elementary/granite")
64 (synopsis "Library that extends GTK with common widgets and utilities")
65 (description "Granite is a companion library for GTK+ and GLib. Among other
66things, it provides complex widgets and convenience functions designed for use
67in apps built for the Pantheon desktop.")
68 (license license:lgpl3+)))
969811ad
RP
69
70(define-public pantheon-calculator
71 (package
72 (name "pantheon-calculator")
73 (version "1.5.5")
74 (source
75 (origin
76 (method git-fetch)
77 (uri (git-reference
78 (url "https://github.com/elementary/calculator.git")
79 (commit version)))
80 (file-name (git-file-name name version))
81 (sha256
82 (base32
83 "1csxsr2c8qvl97xz9ahwn91z095nzgr0i1mbcb1spljll2sr9lkj"))))
84 (build-system meson-build-system)
85 (arguments
86 `(#:glib-or-gtk? #t
87 #:phases
88 (modify-phases %standard-phases
89 (add-after 'unpack 'disable-schema-cache-generation
90 (lambda _
91 (setenv "DESTDIR" "/")
92 #t)))))
93 (inputs
94 `(("granite" ,granite)
95 ("glib" ,glib)
96 ("gtk" ,gtk+)
97 ("libgee" ,libgee)))
98 (native-inputs
99 `(("cmake" ,cmake)
100 ("glib:bin" ,glib "bin") ; for glib-compile-schemas
101 ("gettext" ,gettext-minimal)
102 ("pkg-config" ,pkg-config)
103 ("vala" ,vala)))
104 (home-page "https://github.com/elementary/calculator")
105 (synopsis "Desktop calculator")
106 (description "Calculator is an application for performing simple
107arithmetic. It is the default calculator application in the Pantheon
108desktop.")
109 (license license:gpl3)))