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 patches = [ ./fix-includes.patch ];
12
13 configureFlags = [ "--disable-lynx" ]
14 ++ stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform)
15 [ # Can't run this test while cross-compiling
16 "ac_cv_func_setpgrp_void=yes"
17 ];
18
19 meta = {
20 description = "Lightweight C library that eases the writing of UNIX daemons";
21 homepage = http://0pointer.de/lennart/projects/libdaemon/;
22 license = stdenv.lib.licenses.lgpl2Plus;
23 platforms = stdenv.lib.platforms.unix;
24 };
25}