From 6c1a9d9d7919a04c8d1ccf169b4738d80cc0b116 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Wed, 8 Aug 2018 21:29:43 +0000 Subject: [PATCH] lighttpd: make tests run, but disable --- pkgs/servers/http/lighttpd/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/servers/http/lighttpd/default.nix b/pkgs/servers/http/lighttpd/default.nix index 4596dac0908..c41da6ea2fb 100644 --- a/pkgs/servers/http/lighttpd/default.nix +++ b/pkgs/servers/http/lighttpd/default.nix @@ -3,6 +3,7 @@ , enableMysql ? false, mysql ? null , enableLdap ? false, openldap ? null , enableWebDAV ? true, sqlite ? null, libuuid ? null +, perl }: assert enableMagnet -> lua5_1 != null; @@ -19,6 +20,10 @@ stdenv.mkDerivation rec { sha256 = "02ff77cpvy1006cwfym38vf78xm18plyj636ll74r7kx2bblkpxf"; }; + postPatch = '' + patchShebangs tests + ''; + nativeBuildInputs = [ pkgconfig ]; buildInputs = [ pcre libxml2 zlib attr bzip2 which file openssl ] ++ stdenv.lib.optional enableMagnet lua5_1 @@ -38,6 +43,9 @@ stdenv.mkDerivation rec { sed -i "s:/usr/bin/file:${file}/bin/file:g" configure ''; + checkInputs = [ perl ]; + doCheck = false; # fails 2 tests + postInstall = '' mkdir -p "$out/share/lighttpd/doc/config" cp -vr doc/config "$out/share/lighttpd/doc/"