Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / libdaemon / default.nix
blob112792454c43c73eddb7b67d0619d1696ab2d74e
1 {lib, stdenv, fetchurl}:
3 stdenv.mkDerivation rec {
4   pname = "libdaemon";
5   version = "0.14";
7   src = fetchurl {
8     url = "http://0pointer.de/lennart/projects/libdaemon/${pname}-${version}.tar.gz";
9     sha256 = "0d5qlq5ab95wh1xc87rqrh1vx6i8lddka1w3f1zcqvcqdxgyn8zx";
10   };
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"
20     ];
22   meta = {
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;
27   };