2012-02-16 15:05:41 +01:00
|
|
|
{ cabal, filepath, libXrandr, mtl, parsec, stm, time, utf8String
|
2012-05-29 09:44:01 +02:00
|
|
|
, X11, X11Xft, wirelessSupport ? false, wirelesstools ? null
|
2011-12-10 23:30:49 +01:00
|
|
|
}:
|
2008-04-15 22:03:25 +02:00
|
|
|
|
2012-05-29 09:44:01 +02:00
|
|
|
assert wirelessSupport -> wirelesstools != null;
|
|
|
|
|
2011-08-14 01:38:44 +02:00
|
|
|
cabal.mkDerivation (self: {
|
2008-04-15 22:03:25 +02:00
|
|
|
pname = "xmobar";
|
2011-12-10 23:30:49 +01:00
|
|
|
version = "0.14";
|
|
|
|
sha256 = "1y26b2a5v9hxv1zmjcb4m8j9qkqdn74mqc3q58vgp5cav45rphvh";
|
2011-08-14 01:38:44 +02:00
|
|
|
isLibrary = false;
|
|
|
|
isExecutable = true;
|
2012-02-14 18:00:37 +01:00
|
|
|
buildDepends = [
|
2012-02-16 15:05:41 +01:00
|
|
|
filepath mtl parsec stm time utf8String X11 X11Xft
|
2012-05-29 09:44:01 +02:00
|
|
|
] ++ self.stdenv.lib.optional wirelessSupport wirelesstools;
|
2011-12-10 23:30:49 +01:00
|
|
|
extraLibraries = [ libXrandr ];
|
2012-05-29 09:44:01 +02:00
|
|
|
configureFlags = ["-fwith_xft"] ++ self.stdenv.lib.optional wirelessSupport "-fwith_iwlib";
|
2008-04-15 22:03:25 +02:00
|
|
|
meta = {
|
2011-08-14 01:38:44 +02:00
|
|
|
homepage = "http://projects.haskell.org/xmobar/";
|
|
|
|
description = "A Minimalistic Text Based Status Bar";
|
|
|
|
license = self.stdenv.lib.licenses.bsd3;
|
2011-08-14 12:44:23 +02:00
|
|
|
platforms = self.ghc.meta.platforms;
|
2012-03-24 11:21:28 +01:00
|
|
|
maintainers = [ self.stdenv.lib.maintainers.andres ];
|
2008-04-15 22:03:25 +02:00
|
|
|
};
|
|
|
|
})
|