5890215501
PR #1366 The previous windowManager.xmonad option only starts xmonad and doesn't make ghc available. This assumes that the user has GHC with access to the xmonad package in his PATH when using xmonad. Xmonad in Nix is now patched to accept the XMONAD_{GHC,XMESSAGE} environment variables which define the path to either ghc or xmessage. These are set automatically when using xmonad through windowManager.xmonad. My (or specific: @aristidb and my) changes make it possible to use Xmonad without adding GHC to any profile. This is useful if you want to add a different GHC to your profile. This commit introduces some options: - xmonad.haskellPackages: Controls which Haskell package set & GHC set is used to (re)build Xmonad - xmonad.extraPackages: Function returning a list of additional packages to make available to GHC when rebuilding Xmonad - xmonad.enableContribExtras: Boolean option to build xmonadContrib and xmonadExtras. Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
30 lines
801 B
Nix
30 lines
801 B
Nix
{ cabal, extensibleExceptions, filepath, mtl, utf8String, X11 }:
|
|
|
|
cabal.mkDerivation (self: {
|
|
pname = "xmonad";
|
|
version = "0.11";
|
|
sha256 = "1nsv88y2b206n3s5hrsp5ginvz1bj818ns7jmikavb2g33akdgg5";
|
|
isLibrary = true;
|
|
isExecutable = true;
|
|
buildDepends = [
|
|
extensibleExceptions filepath mtl utf8String X11
|
|
];
|
|
postInstall = ''
|
|
mkdir -p $out/share/man/man1
|
|
mv $out/share/xmonad-*/man/*.1 $out/share/man/man1/
|
|
'';
|
|
|
|
patches = [
|
|
# Patch to make xmonad use XMONAD_{GHC,XMESSAGE} (if available).
|
|
./xmonad_ghc_var_0.11.patch
|
|
];
|
|
|
|
meta = {
|
|
homepage = "http://xmonad.org";
|
|
description = "A tiling window manager";
|
|
license = self.stdenv.lib.licenses.bsd3;
|
|
platforms = self.ghc.meta.platforms;
|
|
maintainers = [ self.stdenv.lib.maintainers.andres ];
|
|
};
|
|
})
|