blob: cf7b26112716bccc64b08d2dec7d552ce8efd21e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{
stdenv,
lib,
libX11,
}:
stdenv.mkDerivation {
pname = "human-sleep";
version = "16-11-2024"; # Date of last change
src = ./.;
nativeBuildInputs = [ libX11 ];
buildPhase = ''
cc dwm-setstatus.c -lX11 -o dwm-setstatus
'';
# TODO: Run check phase: `cscript -DTEST human-sleep.c`
installPhase = ''
mkdir -p $out/bin
mv dwm-setstatus $out/bin
'';
meta = with lib; {
homepage = "https://wiki.archlinux.org/title/Dwm#Conky_statusbar";
description = "Updates DWM status bar for every line on stdin";
mainProgram = "dwm-setstatus";
};
}
|