diff options
author | Ludovic Courtès <ludo@gnu.org> | 2015-09-13 21:28:01 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2015-09-13 21:28:01 +0200 |
commit | 75710da66710cef1d32053cd8f350d13057d02a7 (patch) | |
tree | abef6a326c741b1eb18db866b2f2bacee3e5fc51 /gnu/packages/wm.scm | |
parent | ab20c2cc33063ce783515d8ae7899ec7e2ca6f96 (diff) | |
parent | 610075f7c94c80b8321887b7ccf8bb1a7edd2b8e (diff) | |
download | guix-75710da66710cef1d32053cd8f350d13057d02a7.tar.gz |
Merge branch 'master' into core-updates
Diffstat (limited to 'gnu/packages/wm.scm')
-rw-r--r-- | gnu/packages/wm.scm | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm index 6f05b88bbb..9ca5b96fe8 100644 --- a/gnu/packages/wm.scm +++ b/gnu/packages/wm.scm @@ -1,5 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr> +;;; Copyright © 2015 Siniša Biđin <sinisa@bidin.eu> +;;; Copyright © 2015 Eric Bavier <bavier@member.fsf.org> ;;; ;;; This file is part of GNU Guix. ;;; @@ -21,6 +23,8 @@ #:use-module (guix packages) #:use-module (gnu packages linux) #:use-module (guix build-system gnu) + #:use-module (guix build-system haskell) + #:use-module (gnu packages haskell) #:use-module (gnu packages base) #:use-module (gnu packages pkg-config) #:use-module (gnu packages perl) @@ -143,3 +147,78 @@ commands would.") from scratch. i3 is primarily targeted at advanced users and developers.") (license bsd-3))) + +(define-public xmonad + (package + (name "xmonad") + (version "0.11.1") + (synopsis "Tiling window manager") + (source (origin + (method url-fetch) + (uri (string-append "http://hackage.haskell.org/package/xmonad/" + "xmonad-" version ".tar.gz")) + (sha256 + (base32 + "1pfjssamiwpwjp1qqkm9m9p9s35pv381m0cwg6jxg0ppglibzq1r")))) + (build-system haskell-build-system) + (inputs + `(("ghc-mtl" ,ghc-mtl) + ("ghc-utf8-string" ,ghc-utf8-string) + ("ghc-extensible-exceptions" ,ghc-extensible-exceptions) + ("ghc-x11" ,ghc-x11))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after + 'install 'install-xsession + (lambda _ + (let* ((xsessions (string-append %output "/share/xsessions"))) + (mkdir-p xsessions) + (call-with-output-file + (string-append xsessions "/xmonad.desktop") + (lambda (port) + (format port "~ + [Desktop Entry]~@ + Name=~a~@ + Comment=~a~@ + Exec=~a/bin/xmonad~@ + Type=Application~%" ,name ,synopsis %output))))))))) + (home-page "http://xmonad.org") + (description + "Xmonad is a tiling window manager for X. Windows are arranged +automatically to tile the screen without gaps or overlap, maximising screen +use. All features of the window manager are accessible from the keyboard: a +mouse is strictly optional. Xmonad is written and extensible in Haskell. +Custom layout algorithms, and other extensions, may be written by the user in +config files. Layouts are applied dynamically, and different layouts may be +used on each workspace. Xinerama is fully supported, allowing windows to be +tiled on several screens.") + (license bsd-3))) + +(define-public ghc-xmonad-contrib + (package + (name "ghc-xmonad-contrib") + (version "0.11.3") + (source + (origin + (method url-fetch) + (uri (string-append "http://hackage.haskell.org/package/xmonad-contrib/" + "xmonad-contrib-" version ".tar.gz")) + (sha256 + (base32 + "14h9vr33yljymswj50wbimav263y9abdcgi07mvfis0zd08rxqxa")))) + (build-system haskell-build-system) + (propagated-inputs + `(("ghc-mtl" ,ghc-mtl) + ("ghc-random" ,ghc-random) + ("ghc-utf8-string" ,ghc-utf8-string) + ("ghc-extensible-exceptions" ,ghc-extensible-exceptions) + ("ghc-x11" ,ghc-x11) + ("ghc-x11-xft" ,ghc-x11-xft) + ("xmonad" ,xmonad))) + (home-page "http://xmonad.org") + (synopsis "Third party extensions for xmonad") + (description + "Third party tiling algorithms, configurations, and scripts to Xmonad, a +tiling window manager for X.") + (license bsd-3))) |