2007-08-06 19:45:53 +01:00
|
|
|
{stdenv, fetchurl}:
|
|
|
|
|
2017-05-28 00:40:27 +01:00
|
|
|
stdenv.mkDerivation (rec {
|
2010-07-13 17:32:19 +01:00
|
|
|
name = "libdaemon-0.14";
|
|
|
|
|
2007-08-06 19:45:53 +01:00
|
|
|
src = fetchurl {
|
2010-07-13 17:32:19 +01:00
|
|
|
url = "${meta.homepage}/${name}.tar.gz";
|
|
|
|
sha256 = "0d5qlq5ab95wh1xc87rqrh1vx6i8lddka1w3f1zcqvcqdxgyn8zx";
|
|
|
|
};
|
|
|
|
|
2017-10-27 23:23:15 +01:00
|
|
|
configureFlags = [ "--disable-lynx" ]
|
|
|
|
++ stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform)
|
|
|
|
[ # Can't run this test while cross-compiling
|
|
|
|
"ac_cv_func_setpgrp_void=yes"
|
|
|
|
];
|
2010-07-13 17:32:19 +01:00
|
|
|
|
|
|
|
meta = {
|
2014-08-24 15:21:08 +01:00
|
|
|
description = "Lightweight C library that eases the writing of UNIX daemons";
|
2010-07-13 17:32:19 +01:00
|
|
|
|
|
|
|
homepage = http://0pointer.de/lennart/projects/libdaemon/;
|
|
|
|
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.lgpl2Plus;
|
2010-07-13 17:32:19 +01:00
|
|
|
|
2016-08-02 22:55:42 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2013-08-16 22:44:33 +01:00
|
|
|
maintainers = [ ];
|
2007-08-06 19:45:53 +01:00
|
|
|
};
|
2017-05-28 00:40:27 +01:00
|
|
|
} // stdenv.lib.optionalAttrs stdenv.hostPlatform.isMusl {
|
|
|
|
# This patch should be applied unconditionally, but doing so will cause mass rebuild.
|
|
|
|
patches = ./fix-includes.patch;
|
|
|
|
})
|
|
|
|
|