aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vogt <vogt.adam@gmail.com>2014-05-03 06:40:52 +0200
committerAdam Vogt <vogt.adam@gmail.com>2014-05-03 06:40:52 +0200
commit790ade0322b101bf696ec67e8a41289ad782bd65 (patch)
tree64fff42f1a08fd1be5c87fe1597069f6cf8b13ae
parentcdeb11e320dac4bcd160a471e06b1c11ce72678e (diff)
downloadxmonad-790ade0322b101bf696ec67e8a41289ad782bd65.tar.gz
xmonad-790ade0322b101bf696ec67e8a41289ad782bd65.tar.xz
xmonad-790ade0322b101bf696ec67e8a41289ad782bd65.zip
update README
Ignore-this: 7f6f72c26444d44491b0ec6d2b0d3ab darcs-hash:20140503044052-1499c-b3ff94dedc34789ebcb28442f0f48affadcf37c2.gz
-rw-r--r--README69
1 files changed, 18 insertions, 51 deletions
diff --git a/README b/README
index db0cce9..445f0aa 100644
--- a/README
+++ b/README
@@ -14,11 +14,15 @@
Quick start:
-Obtain the dependent libraries, then build with:
+ From hackage:
- runhaskell Setup.lhs configure --user --prefix=$HOME
- runhaskell Setup.lhs build
- runhaskell Setup.lhs install --user
+ cabal update
+ cabal install xmonad xmonad-contrib
+
+ Alternatively install development snapshots (from darcs):
+
+ cabal install http://code.haskell.org/xmonad/xmonad.tar.gz \
+ http://code.haskell.org/XMonadContrib/xmc.tar.gz
For the full story, read on.
@@ -37,63 +41,26 @@ Building:
You first need a Haskell compiler. Your distribution's package
system will have binaries of GHC (the Glasgow Haskell Compiler), the
compiler we use, so install that first. If your operating system's
- package system doesn't provide a binary version of GHC, you can find
- them here:
-
- http://haskell.org/ghc
+ package system doesn't provide a binary version of GHC and the
+ cabal-install tool, you can find an installer for both here:
- For example, in Debian you would install GHC with:
-
- apt-get install ghc6
+ http://haskell.org/platform/
It shouldn't be necessary to compile GHC from source -- every common
system has a pre-build binary version.
+ Alternatively you can install from hackage
+
+ http://haskell.org/ghc/
+ http://haskell.org/cabal/download.html
+
* X11 libraries:
Since you're building an X application, you'll need the C X11
library headers. On many platforms, these come pre-installed. For
others, such as Debian, you can get them from your package manager:
- apt-get install libx11-dev
-
- Typically you need: libXinerama libXext libX11
-
- * Cabal
-
- xmonad requires a recent version of Cabal, >= 1.2.0. If you're using
- GHC 6.8, then it comes bundled with the right version. If you're
- using GHC 6.6.x, you'll need to build and install Cabal from hackage
- first:
-
- http://hackage.haskell.org/package/Cabal
-
- You can check which version you have with the command:
-
- $ ghc-pkg list Cabal
- Cabal-1.2.2.0
-
- * Haskell libraries: mtl, unix, X11
-
- Finally, you need the Haskell libraries xmonad depends on. Since
- you've a working GHC installation now, most of these will be
- provided. To check whether you've got a package run 'ghc-pkg list
- some_package_name'. You will need the following packages:
-
- mtl http://hackage.haskell.org/package/mtl
- unix http://hackage.haskell.org/package/unix
- X11 http://hackage.haskell.org/package/X11
-
- * Build xmonad:
-
- Once you've got all the dependencies in place (which should be
- straightforward), build xmonad:
-
- runhaskell Setup.lhs configure --user --prefix=$HOME
- runhaskell Setup.lhs build
- runhaskell Setup.lhs install --user
-
- And you're done!
+ apt-get install libx11-dev libxinerama-dev libxext-dev
------------------------------------------------------------------------
@@ -101,7 +68,7 @@ Running xmonad:
Add:
- $HOME/bin/xmonad
+ exec $HOME/.cabal/bin/xmonad
to the last line of your .xsession or .xinitrc file.