1{stdenv, fetchurl}:
2
3stdenv.mkDerivation (rec {
4 name = "libdaemon-0.14";
5
6 src = fetchurl {
7 url = "${meta.homepage}/${name}.tar.gz";
8 sha256 = "0d5qlq5ab95wh1xc87rqrh1vx6i8lddka1w3f1zcqvcqdxgyn8zx";
9 };
10
11 configureFlags = [ "--disable-lynx" ]
12 ++ stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform)
13 [ # Can't run this test while cross-compiling
14 "ac_cv_func_setpgrp_void=yes"
15 ];
16
17 meta = {
18 description = "Lightweight C library that eases the writing of UNIX daemons";
19
20 homepage = http://0pointer.de/lennart/projects/libdaemon/;
21
22 license = stdenv.lib.licenses.lgpl2Plus;
23
24 platforms = stdenv.lib.platforms.unix;
25 maintainers = [ ];
26 };
27} // stdenv.lib.optionalAttrs stdenv.hostPlatform.isMusl {
28 # This patch should be applied unconditionally, but doing so will cause mass rebuild.
29 patches = ./fix-includes.patch;
30})
31