1 {lib, stdenv, fetchurl}:
3 stdenv.mkDerivation rec {
8 url = "http://www.infodrom.org/projects/sysklogd/download/sysklogd-${version}.tar.gz";
9 sha256 = "00f2wy6f0qng7qzga4iicyzl9j8b7mp6mrpfky5jxj93ms2w2rji";
12 patches = [ ./systemd.patch ./union-wait.patch ./fix-includes-for-musl.patch ];
14 env.NIX_CFLAGS_COMPILE = "-DSYSV";
16 installFlags = [ "BINDIR=$(out)/sbin" "MANDIR=$(out)/share/man" "INSTALL=install" ];
19 "CC=${stdenv.cc.targetPrefix}cc"
23 # Disable stripping during installation, stripping will be done anyway.
24 # Fixes cross-compilation.
25 substituteInPlace Makefile \
26 --replace "-m 500 -s" "-m 500"
31 sed -e 's@-o \''${MAN_USER} -g \''${MAN_GROUP} -m \''${MAN_PERMS} @@' -i Makefile
34 preInstall = "mkdir -p $out/share/man/man5/ $out/share/man/man8/ $out/sbin";
37 description = "System logging daemon";
38 platforms = platforms.linux;
39 license = licenses.gpl2Plus;