Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{lib, stdenv, fetchurl}:
2
3stdenv.mkDerivation rec {
4 pname = "libdaemon";
5 version = "0.14";
6
7 src = fetchurl {
8 url = "http://0pointer.de/lennart/projects/libdaemon/${pname}-${version}.tar.gz";
9 sha256 = "0d5qlq5ab95wh1xc87rqrh1vx6i8lddka1w3f1zcqvcqdxgyn8zx";
10 };
11
12 patches = [ ./fix-includes.patch ];
13
14 configureFlags = [ "--disable-lynx" ]
15 ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform)
16 [ # Can't run this test while cross-compiling
17 "ac_cv_func_setpgrp_void=yes"
18 ];
19
20 meta = {
21 description = "Lightweight C library that eases the writing of UNIX daemons";
22 homepage = "http://0pointer.de/lennart/projects/libdaemon/";
23 license = lib.licenses.lgpl2Plus;
24 platforms = lib.platforms.unix;
25 };
26}