Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "sysklogd";
|
|
version = "1.5.1";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.infodrom.org/projects/sysklogd/download/sysklogd-${version}.tar.gz";
|
|
sha256 = "00f2wy6f0qng7qzga4iicyzl9j8b7mp6mrpfky5jxj93ms2w2rji";
|
|
};
|
|
|
|
patches = [
|
|
./systemd.patch
|
|
./union-wait.patch
|
|
./fix-includes-for-musl.patch
|
|
];
|
|
|
|
env.NIX_CFLAGS_COMPILE = "-DSYSV";
|
|
|
|
installFlags = [
|
|
"BINDIR=$(out)/sbin"
|
|
"MANDIR=$(out)/share/man"
|
|
"INSTALL=install"
|
|
];
|
|
|
|
makeFlags = [
|
|
"CC=${stdenv.cc.targetPrefix}cc"
|
|
];
|
|
|
|
postPatch = ''
|
|
# Disable stripping during installation, stripping will be done anyway.
|
|
# Fixes cross-compilation.
|
|
substituteInPlace Makefile \
|
|
--replace "-m 500 -s" "-m 500"
|
|
'';
|
|
|
|
preConfigure = ''
|
|
sed -e 's@-o \''${MAN_USER} -g \''${MAN_GROUP} -m \''${MAN_PERMS} @@' -i Makefile
|
|
'';
|
|
|
|
preInstall = "mkdir -p $out/share/man/man5/ $out/share/man/man8/ $out/sbin";
|
|
|
|
meta = with lib; {
|
|
description = "System logging daemon";
|
|
platforms = platforms.linux;
|
|
license = licenses.gpl2Plus;
|
|
};
|
|
}
|