1 { lib, stdenv, fetchgit, pkg-config, writeText, libX11, conf ? null, patches ? [] }:
5 stdenv.mkDerivation rec {
7 version = "unstable-2019-02-16";
10 url = "https://git.suckless.org/slstatus";
11 rev = "b14e039639ed28005fbb8bddeb5b5fa0c93475ac";
12 sha256 = "0kayyhpmppybhwndxgabw48wsk9v8x9xdb05xrly9szkw3jbvgw4";
15 configFile = optionalString (conf!=null) (writeText "config.def.h" conf);
16 preBuild = optionalString (conf!=null) "cp ${configFile} config.def.h";
20 nativeBuildInputs = [ pkg-config ];
21 buildInputs = [ libX11 ];
23 makeFlags = [ "CC:=$(CC)" ];
25 installFlags = [ "PREFIX=$(out)" ];
28 homepage = "https://tools.suckless.org/slstatus/";
29 description = "status monitor for window managers that use WM_NAME like dwm";
30 license = licenses.isc;
31 maintainers = with maintainers; [ oxzi ];
32 platforms = platforms.linux;