aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/gnome.scm
diff options
context:
space:
mode:
author宋文武 <iyzsong@gmail.com>2015-12-15 21:14:57 +0800
committer宋文武 <iyzsong@gmail.com>2015-12-20 18:59:22 +0800
commita4df575631e8212d82af59f0178ba42150e2cb1f (patch)
tree9e0eb9b3e4faccb0e03a969d4bdd121f17eb0bdf /gnu/packages/gnome.scm
parentb645146f00b154a541388e7f227bc18a0c1e8899 (diff)
downloadguix-a4df575631e8212d82af59f0178ba42150e2cb1f.tar
guix-a4df575631e8212d82af59f0178ba42150e2cb1f.tar.gz
gnu: Add gnome-shell.
* gnu/packages/gnome.scm (gnome-shell): New variable.
Diffstat (limited to 'gnu/packages/gnome.scm')
-rw-r--r--gnu/packages/gnome.scm82
1 files changed, 82 insertions, 0 deletions
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index e28aaff5e7..8f886fd84f 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -4468,3 +4468,85 @@ allowing to set accessibility configuration, desktop fonts, keyboard and mouse
properties, sound setup, desktop theme and background, user interface
properties, screen resolution, and other GNOME parameters.")
(license license:gpl2+)))
+
+(define-public gnome-shell
+ (package
+ (name "gnome-shell")
+ (version "3.18.3")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://gnome/sources/" name "/"
+ (version-major+minor version) "/"
+ name "-" version ".tar.xz"))
+ (sha256
+ (base32
+ "16sicxdp08yfaj4hiyzvbspb5jk3fpmi291272zhx5vgc3wbl5w5"))))
+ (build-system glib-or-gtk-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (keysdir (string-append
+ out "/share/gnome-control-center/keybindings")))
+ (zero? (system* "make"
+ (string-append "keysdir=" keysdir)
+ "install")))))
+ (add-after
+ 'install 'wrap-programs
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out"))
+ (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
+ (python-path (getenv "PYTHONPATH")))
+ (wrap-program (string-append out "/bin/gnome-shell")
+ `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)))
+ (for-each
+ (lambda (prog)
+ (wrap-program (string-append out "/bin/" prog)
+ `("PYTHONPATH" ":" prefix (,python-path))
+ `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
+ '("gnome-shell-extension-tool" "gnome-shell-perf-tool"))
+ #t))))))
+ (native-inputs
+ `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
+ ("gobject-introspection" ,gobject-introspection)
+ ("intltool" ,intltool)
+ ("pkg-config" ,pkg-config)
+ ("python" ,python)
+ ("xsltproc" ,libxslt)))
+ (inputs
+ `(("accountsservice" ,accountsservice)
+ ("caribou" ,caribou)
+ ("docbook-xsl" ,docbook-xsl)
+ ("evolution-data-server" ,evolution-data-server)
+ ("gcr" ,gcr)
+ ("gdm" ,gdm)
+ ("gjs" ,gjs)
+ ("gnome-bluetooth" ,gnome-bluetooth)
+ ("gnome-control-center" ,gnome-control-center)
+ ("gnome-desktop" ,gnome-desktop)
+ ("gnome-settings-daemon" ,gnome-settings-daemon)
+ ("gst-plugins-base" ,gst-plugins-base)
+ ("ibus" ,ibus)
+ ("libcanberra" ,libcanberra)
+ ("libcroco" ,libcroco)
+ ("libgweather" ,libgweather)
+ ("libsoup" ,libsoup)
+ ("mesa-headers" ,mesa-headers)
+ ("mutter" ,mutter)
+ ("network-manager-applet" ,network-manager-applet)
+ ("polkit" ,polkit)
+ ("pulseaudio" ,pulseaudio)
+ ("python-pygobject" ,python-pygobject)
+ ("startup-notification" ,startup-notification)
+ ("telepathy-logger" ,telepathy-logger)
+ ("upower" ,upower)
+ ;; XXX: required by libgjs.la.
+ ("readline" ,readline)))
+ (synopsis "Desktop shell for GNOME")
+ (home-page "https://wiki.gnome.org/Projects/GnomeShell")
+ (description
+ "GNOME Shell provides core user interface functions for the GNOME desktop,
+like switching to windows and launching applications.")
+ (license license:gpl2+)))