2018-03-23 16:02:53 +00:00
|
|
|
{ stdenv, fetchgit, pkgconfig, writeText, libX11, conf ? null }:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "slstatus";
|
2018-04-19 09:58:25 +00:00
|
|
|
version = "unstable-2018-04-16";
|
2018-03-23 16:02:53 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = https://git.suckless.org/slstatus;
|
2018-04-19 09:58:25 +00:00
|
|
|
rev = "97ef7c2a1d67bb2c9c379e657fbc8e35acd6aafb";
|
|
|
|
sha256 = "1777hgl10imk0l2sgnqgbkfchv1mpxrd82ninzwp7f1rgwchz36v";
|
2018-03-23 16:02:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
configFile = optionalString (conf!=null) (writeText "config.def.h" conf);
|
|
|
|
preBuild = optionalString (conf!=null) "cp ${configFile} config.def.h";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ libX11 ];
|
|
|
|
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://tools.suckless.org/slstatus/;
|
|
|
|
description = "status monitor for window managers that use WM_NAME like dwm";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ geistesk ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|