From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Bavier Subject: Re: [PATCH 12/13] gnu: Add xmonad. Date: Sun, 23 Aug 2015 15:47:29 -0500 Message-ID: <20150823154729.4dd46618@openmailbox.org> References: <1439930415-16938-1-git-send-email-sinisa@bidin.eu> <1439930415-16938-13-git-send-email-sinisa@bidin.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTgkT-0005Sq-TI for guix-devel@gnu.org; Sun, 23 Aug 2015 21:40:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZTgkQ-0001MU-Gn for guix-devel@gnu.org; Sun, 23 Aug 2015 21:40:33 -0400 Received: from smtp23.openmailbox.org ([62.4.1.57]:35284) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTgkQ-0001ME-5A for guix-devel@gnu.org; Sun, 23 Aug 2015 21:40:30 -0400 In-Reply-To: <1439930415-16938-13-git-send-email-sinisa@bidin.eu> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: =?UTF-8?B?U2luacWhYSBCacSRaW4=?= Cc: guix-devel@gnu.org On Tue, 18 Aug 2015 22:40:14 +0200 Sini=C5=A1a Bi=C4=91in wrote: > * gnu/packages/xmonad.scm (xmonad, xmonad.desktop): New variables. > * gnu-system.am (GNU_SYSTEM_MODULES): Add it. > --- > gnu-system.am | 1 + > gnu/packages/xmonad.scm | 78 +++++++++++++++++++++++++++++++++++++++++++= ++++++ > 2 files changed, 79 insertions(+) > create mode 100644 gnu/packages/xmonad.scm [...] > +(define xmonad.desktop > + (origin > + (method url-fetch) > + (uri (string-append > + "https://sources.gentoo.org/cgi-bin/viewvc.cgi/" > + "gentoo-x86/x11-wm/xmonad/files/xmonad.desktop?revision=3D1.3"= )) > + (file-name "xmonad.desktop") > + (sha256 (base32 "0jx3pqv62hjz0nnfxml2b3qiw2nzslwnva466xh28k23mpissj6= s")))) I had to replace "Exec=3D/etc/X11/Session/xmonad" with "Exec=3Dxmonad" in this xmonad.desktop file in order to launch an xmonad session from Slim. Does this seem right? Does it make sense to fetch this file from gentoo.org and then modify it? or should we rather just generate it ourselves? What do you/others think? > + > +(define-public xmonad > + (package > + (name "xmonad") > + (version "0.11.1") > + (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) > + (arguments > + '(#:phases > + (alist-cons-after > + 'install 'install-xsession > + (lambda _ > + (let* ((file (assoc-ref %build-inputs "xmonad.desktop")) > + (xsessions (string-append %output "/share/xsessions")) > + (target (string-append xsessions "/xmonad.desktop"= ))) > + (mkdir-p xsessions) > + (copy-file file target))) > + %standard-phases))) > + (inputs > + `(("xmonad.desktop" ,xmonad.desktop))) > + (propagated-inputs > + `(("ghc-mtl" ,ghc-mtl) > + ("ghc-utf8-string" ,ghc-utf8-string) > + ("ghc-extensible-exceptions" ,ghc-extensible-exceptions) > + ("ghc-x11" ,ghc-x11))) Do these inputs need to be propagated? I can start up an xmonad session without propagating these inputs. Do they need to be available for xmonad's 'mod-q' (i.e. restarting xmonad/loading a new config)? `~Eric