1 {lib, stdenv, fetchurl}:
3 stdenv.mkDerivation rec {
8 url = "http://0pointer.de/lennart/projects/libdaemon/${pname}-${version}.tar.gz";
9 sha256 = "0d5qlq5ab95wh1xc87rqrh1vx6i8lddka1w3f1zcqvcqdxgyn8zx";
12 outputs = [ "out" "dev" "doc" ];
14 patches = [ ./fix-includes.patch ];
16 configureFlags = [ "--disable-lynx" ]
17 ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform)
18 [ # Can't run this test while cross-compiling
19 "ac_cv_func_setpgrp_void=yes"
23 description = "Lightweight C library that eases the writing of UNIX daemons";
24 homepage = "http://0pointer.de/lennart/projects/libdaemon/";
25 license = lib.licenses.lgpl2Plus;
26 platforms = lib.platforms.unix;