On Tue, 18 Aug 2015 22:40:14 +0200 Siniša Biđin <sin...@bidin.eu> 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=1.3")) > + (file-name "xmonad.desktop") > + (sha256 (base32 > "0jx3pqv62hjz0nnfxml2b3qiw2nzslwnva466xh28k23mpissj6s")))) I had to replace "Exec=/etc/X11/Session/xmonad" with "Exec=xmonad" 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