2014-08-08 16:58:34 +01:00
|
|
|
{ lib, fetchurl, stdenv, libgcrypt, libevent, libidn, gnutls
|
2012-01-18 20:53:01 +00:00
|
|
|
, libxml2, zlib, guile, texinfo, cppunit, psmisc }:
|
2009-08-21 11:20:40 +01:00
|
|
|
|
2011-08-22 18:38:33 +01:00
|
|
|
let version = "0.11"; in
|
2009-08-21 11:20:40 +01:00
|
|
|
|
2014-08-08 16:58:34 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "myserver-${version}";
|
2009-08-21 11:20:40 +01:00
|
|
|
|
2014-08-08 16:58:34 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/myserver/${version}/${name}.tar.xz";
|
|
|
|
sha256 = "02y3vv4hxpy5h710y79s8ipzshhc370gbz1wm85x0lnq5nqxj2ax";
|
|
|
|
};
|
2009-08-21 11:20:40 +01:00
|
|
|
|
2014-08-08 16:58:34 +01:00
|
|
|
patches =
|
|
|
|
[ ./disable-dns-lookup-in-chroot.patch ];
|
2009-08-21 11:20:40 +01:00
|
|
|
|
2014-08-08 16:58:34 +01:00
|
|
|
buildInputs =
|
|
|
|
[ libgcrypt libevent libidn gnutls libxml2 zlib guile texinfo ]
|
|
|
|
++ lib.optional doCheck cppunit;
|
2010-10-19 09:09:41 +01:00
|
|
|
|
2014-08-08 16:58:34 +01:00
|
|
|
makeFlags = [ "V=1" ];
|
2009-08-21 11:20:40 +01:00
|
|
|
|
2014-08-08 16:58:34 +01:00
|
|
|
doCheck = true;
|
2010-10-19 09:09:41 +01:00
|
|
|
|
2014-08-08 16:58:34 +01:00
|
|
|
enableParallelBuilding = true;
|
2009-08-21 11:20:40 +01:00
|
|
|
|
2014-08-08 16:58:34 +01:00
|
|
|
# On GNU/Linux the `test_suite' process sometimes stays around, so
|
|
|
|
# forcefully terminate it.
|
|
|
|
postCheck = lib.optionalString stdenv.isLinux "${psmisc}/bin/killall test_suite || true";
|
2009-08-21 11:20:40 +01:00
|
|
|
|
2014-08-08 16:58:34 +01:00
|
|
|
meta = {
|
|
|
|
description = "GNU MyServer, a powerful and easy to configure web server";
|
2009-08-21 11:20:40 +01:00
|
|
|
|
2014-08-08 16:58:34 +01:00
|
|
|
longDescription = ''
|
|
|
|
GNU MyServer is a powerful and easy to configure web server. Its
|
|
|
|
multi-threaded architecture makes it extremely scalable and usable in
|
|
|
|
large scale sites as well as in small networks, it has a lot of
|
|
|
|
built-in features. Share your files in minutes!
|
|
|
|
'';
|
2009-08-21 11:20:40 +01:00
|
|
|
|
2014-08-08 16:58:34 +01:00
|
|
|
homepage = http://www.gnu.org/software/myserver/;
|
2009-09-17 11:33:09 +01:00
|
|
|
|
2014-08-08 16:58:34 +01:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2011-03-04 13:19:00 +00:00
|
|
|
|
2014-08-08 16:58:34 +01:00
|
|
|
# libevent fails to build on Cygwin and Guile has troubles on Darwin.
|
|
|
|
platforms = lib.platforms.gnu;
|
2011-03-04 13:19:00 +00:00
|
|
|
|
2014-08-08 16:58:34 +01:00
|
|
|
broken = true; # needs patch for gets()
|
|
|
|
};
|
|
|
|
}
|