-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpantheon.scm
133 lines (129 loc) · 4.89 KB
/
pantheon.scm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2020 Ryan Prior <[email protected]>
;;; Copyright © 2020 L p R n d n <[email protected]>
(define-module (testing pantheon)
#:use-module (gnu packages fontutils)
#:use-module (gnu packages gettext)
#:use-module (gnu packages glib)
#:use-module (gnu packages gnome)
#:use-module (gnu packages image)
#:use-module (gnu packages pantheon)
#:use-module (gnu packages text-editors)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages xorg)
#:use-module (gnu packages gtk)
#:use-module (gnu packages inkscape)
#:use-module (gnu packages webkit)
#:use-module (guix build-system meson)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module ((guix licenses) :prefix license:)
#:use-module (guix packages)
#:use-module (guix utils))
(define-public pantheon-gtk-theme
(package
(name "pantheon-gtk-theme")
(version "5.4.2")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/elementary/stylesheet.git")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "0aqq0d21mqgrfiyhpfa8k51wxw2pia0qlsgp0sli79v7nwn3ykbq"))))
(native-inputs
`(("gettext" ,gettext-minimal)))
(build-system meson-build-system)
(home-page "https://github.com/elementary/stylesheet")
(synopsis "GTK theme for Pantheon")
(description "Theme for the Pantheon desktop environment using a custom
designed GTK-CSS stylesheet.")
(license license:gpl3+)))
(define-public pantheon-icon-theme
(package
(name "pantheon-icon-theme")
(version "5.3.1")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/elementary/icons.git")
(commit version)))
(sha256
(base32 "0rs68cb39r9vq85pr8h3mgmyjpj8bkhkxr5cz4cn5947kf776wg9"))))
(build-system meson-build-system)
(arguments
`(#:configure-flags
(list "-Dvolume_icons=false")))
(native-inputs
`(("pkg-config" ,pkg-config)
("gettext" ,gettext-minimal)
("inkscape" ,inkscape)
("xcursorgen" ,xcursorgen)
("librsvg" ,librsvg)))
(inputs
`(("gtk+" ,gtk+)))
(propagated-inputs
`(("hicolor-icon-theme" ,hicolor-icon-theme)))
(home-page "https://github.com/elementary/icons")
(synopsis "Icons for Pantheon")
(description "Vector icon theme for Pantheon. It is not a comprehensive
universal icon set; its coverage is tailored for the software available in
elementary OS, for which Pantheon is the first-party desktop environment.")
(license license:gpl3+)))
(define-public pantheon-code
(package
(name "pantheon-code")
(version "3.4.0")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/elementary/code.git")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "0b1vdgb1xvh5lqbral3r0qaq05zd5q5ywxw02fggpyy8nyxs3z8f"))))
(build-system meson-build-system)
(arguments
`(#:glib-or-gtk? #t
#:phases
(modify-phases %standard-phases
(add-before 'install 'set-environment-variables
(lambda _
;; Disable compiling schemas and updating desktop databases
(setenv "DESTDIR" "/")
#t))
(add-after 'install 'install-symlinks
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin/io.elementary.code"))
(link (string-append out "/bin/pantheon-code")))
(symlink bin link)))))))
(inputs
`(("granite" ,granite)
("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
("gtk" ,gtk+)
("gtksourceview" ,gtksourceview-3)
("pantheon-gtk-theme" ,pantheon-gtk-theme)
("pantheon-icon-theme" ,pantheon-icon-theme)
("vte" ,vte)
("webkitgtk" ,webkitgtk)))
(native-inputs
`(("editorconfig" ,editorconfig-core-c)
("fontconfig" ,fontconfig)
("gettext" ,gettext-minimal)
("glib" ,glib)
("glib:bin" ,glib "bin") ; for glib-compile-resources
("gtkspell3" ,gtkspell3)
("libgee" ,libgee)
("libgit2" ,libgit2-glib)
("libpeas" ,libpeas)
("pango" ,pango)
("pkg-config" ,pkg-config)
("vala" ,vala)))
(home-page "https://github.com/elementary/code")
(synopsis "Code editor for Pantheon")
(description "Code is a programmer's text editor designed as a tool to
build the Pantheon desktop environment and elementary OS. As such, it focuses
on tools for programmers using Vala, GNOME and GTK.")
(license license:gpl3+)))