lol
1{ stdenv, fetchgit, pkgconfig, writeText, libX11, conf ? null }:
2
3with stdenv.lib;
4
5stdenv.mkDerivation rec {
6 name = "slstatus-${version}";
7 version = "unstable-2018-04-16";
8
9 src = fetchgit {
10 url = https://git.suckless.org/slstatus;
11 rev = "97ef7c2a1d67bb2c9c379e657fbc8e35acd6aafb";
12 sha256 = "1777hgl10imk0l2sgnqgbkfchv1mpxrd82ninzwp7f1rgwchz36v";
13 };
14
15 configFile = optionalString (conf!=null) (writeText "config.def.h" conf);
16 preBuild = optionalString (conf!=null) "cp ${configFile} config.def.h";
17
18 nativeBuildInputs = [ pkgconfig ];
19 buildInputs = [ libX11 ];
20
21 installFlags = [ "PREFIX=$(out)" ];
22
23 meta = {
24 homepage = https://tools.suckless.org/slstatus/;
25 description = "status monitor for window managers that use WM_NAME like dwm";
26 license = licenses.isc;
27 maintainers = with maintainers; [ geistesk ];
28 platforms = platforms.linux;
29 };
30}