nixpkgs/pkgs/applications/misc/xmobar/default.nix

26 lines
899 B
Nix
Raw Normal View History

{ cabal, filepath, libXrandr, mtl, parsec, stm, time, utf8String
, X11, X11Xft, wirelessSupport ? false, wirelesstools ? null
}:
assert wirelessSupport -> wirelesstools != null;
cabal.mkDerivation (self: {
pname = "xmobar";
version = "0.14";
sha256 = "1y26b2a5v9hxv1zmjcb4m8j9qkqdn74mqc3q58vgp5cav45rphvh";
isLibrary = false;
isExecutable = true;
buildDepends = [
filepath mtl parsec stm time utf8String X11 X11Xft
] ++ self.stdenv.lib.optional wirelessSupport wirelesstools;
extraLibraries = [ libXrandr ];
configureFlags = ["-fwith_xft"] ++ self.stdenv.lib.optional wirelessSupport "-fwith_iwlib";
meta = {
homepage = "http://projects.haskell.org/xmobar/";
description = "A Minimalistic Text Based Status Bar";
license = self.stdenv.lib.licenses.bsd3;
platforms = self.ghc.meta.platforms;
maintainers = [ self.stdenv.lib.maintainers.andres ];
};
})