Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.11-beta 28 lines 791 B view raw
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 outputs = [ "out" "dev" "doc" ]; 13 14 patches = [ ./fix-includes.patch ]; 15 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 ]; 21 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 }; 28}