xmobar: enable optional wireless support

svn path=/nixpkgs/trunk/; revision=34268
This commit is contained in:
Mathijs Kwik 2012-05-29 07:44:01 +00:00
parent 71c3057406
commit b82a8f6319

View File

@ -1,7 +1,9 @@
{ cabal, filepath, libXrandr, mtl, parsec, stm, time, utf8String
, X11, X11Xft
, X11, X11Xft, wirelessSupport ? false, wirelesstools ? null
}:
assert wirelessSupport -> wirelesstools != null;
cabal.mkDerivation (self: {
pname = "xmobar";
version = "0.14";
@ -10,9 +12,9 @@ cabal.mkDerivation (self: {
isExecutable = true;
buildDepends = [
filepath mtl parsec stm time utf8String X11 X11Xft
];
] ++ self.stdenv.lib.optional wirelessSupport wirelesstools;
extraLibraries = [ libXrandr ];
configureFlags = "-fwith_xft";
configureFlags = ["-fwith_xft"] ++ self.stdenv.lib.optional wirelessSupport "-fwith_iwlib";
meta = {
homepage = "http://projects.haskell.org/xmobar/";
description = "A Minimalistic Text Based Status Bar";