8 # From https://skarnet.org/software/misc/sdnotify-wrapper.c,
9 # which is unversioned.
10 src = ./sdnotify-wrapper.c;
13 runCommandCC "sdnotify-wrapper"
23 homepage = "https://skarnet.org/software/misc/sdnotify-wrapper.c";
24 description = "Use systemd sd_notify without having to link against libsystemd";
25 mainProgram = "sdnotify-wrapper";
26 platforms = lib.platforms.linux;
27 license = lib.licenses.isc;
28 maintainers = with lib.maintainers; [ Profpatsch ];
36 # the -lskarnet has to come at the end to support static builds
38 -o $bin/bin/sdnotify-wrapper \
39 -I${skalibs.dev}/include \
40 -L${skalibs.lib}/lib \
44 mkdir -p $doc/share/doc/sdnotify-wrapper
45 # copy the documentation comment
46 sed -ne '/Usage:/,/*\//p' ${src} > $doc/share/doc/sdnotify-wrapper/README