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