storj-uplink: 1.119.15 -> 1.120.4 (#375732)
[NixPkgs.git] / pkgs / by-name / li / libdaemon / package.nix
blob796cb02ea03fde4c74dc07575ae69b8bc08537fa
2   lib,
3   stdenv,
4   fetchurl,
5 }:
7 stdenv.mkDerivation rec {
8   pname = "libdaemon";
9   version = "0.14";
11   src = fetchurl {
12     url = "http://0pointer.de/lennart/projects/libdaemon/${pname}-${version}.tar.gz";
13     sha256 = "0d5qlq5ab95wh1xc87rqrh1vx6i8lddka1w3f1zcqvcqdxgyn8zx";
14   };
16   outputs = [
17     "out"
18     "dev"
19     "doc"
20   ];
22   patches = [ ./fix-includes.patch ];
24   configureFlags =
25     [ "--disable-lynx" ]
26     ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
27       # Can't run this test while cross-compiling
28       "ac_cv_func_setpgrp_void=yes"
29     ];
31   meta = {
32     description = "Lightweight C library that eases the writing of UNIX daemons";
33     homepage = "http://0pointer.de/lennart/projects/libdaemon/";
34     license = lib.licenses.lgpl2Plus;
35     platforms = lib.platforms.unix;
36   };