2009-08-21 12:20:40 +02:00
|
|
|
{ fetchurl, stdenv, libgcrypt, libevent, libidn, gnutls
|
2012-01-18 21:53:01 +01:00
|
|
|
, libxml2, zlib, guile, texinfo, cppunit, psmisc }:
|
2009-08-21 12:20:40 +02:00
|
|
|
|
2011-08-22 19:38:33 +02:00
|
|
|
let version = "0.11"; in
|
2011-03-04 14:19:00 +01:00
|
|
|
stdenv.mkDerivation (rec {
|
2009-08-21 12:20:40 +02:00
|
|
|
name = "myserver-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2010-02-16 11:48:06 +01:00
|
|
|
url = "mirror://gnu/myserver/${version}/${name}.tar.xz";
|
2011-08-22 19:38:33 +02:00
|
|
|
sha256 = "02y3vv4hxpy5h710y79s8ipzshhc370gbz1wm85x0lnq5nqxj2ax";
|
2009-08-21 12:20:40 +02:00
|
|
|
};
|
|
|
|
|
2011-03-04 14:19:04 +01:00
|
|
|
patches =
|
2011-08-22 19:38:33 +02:00
|
|
|
[ ./disable-dns-lookup-in-chroot.patch ];
|
2009-08-21 12:20:40 +02:00
|
|
|
|
2010-10-19 10:09:41 +02:00
|
|
|
buildInputs =
|
2012-01-18 21:53:01 +01:00
|
|
|
[ libgcrypt libevent libidn gnutls libxml2 zlib guile texinfo ]
|
2009-08-21 12:20:40 +02:00
|
|
|
++ stdenv.lib.optional doCheck cppunit;
|
|
|
|
|
2010-10-19 10:09:41 +02:00
|
|
|
makeFlags = [ "V=1" ];
|
|
|
|
|
2009-08-21 12:20:40 +02:00
|
|
|
doCheck = true;
|
|
|
|
|
2010-10-19 10:09:41 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2009-08-21 12:20:40 +02:00
|
|
|
meta = {
|
|
|
|
description = "GNU MyServer, a powerful and easy to configure web server";
|
|
|
|
|
|
|
|
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!
|
|
|
|
'';
|
|
|
|
|
|
|
|
homepage = http://www.gnu.org/software/myserver/;
|
|
|
|
|
|
|
|
license = "GPLv3+";
|
|
|
|
|
2013-08-16 23:44:33 +02:00
|
|
|
maintainers = [ ];
|
2009-09-17 12:33:09 +02:00
|
|
|
|
|
|
|
# libevent fails to build on Cygwin and Guile has troubles on Darwin.
|
|
|
|
platforms = stdenv.lib.platforms.gnu;
|
2009-08-21 12:20:40 +02:00
|
|
|
};
|
|
|
|
}
|
2011-03-04 14:19:00 +01:00
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
# On GNU/Linux the `test_suite' process sometimes stays around, so
|
|
|
|
# forcefully terminate it.
|
|
|
|
(if stdenv.isLinux
|
|
|
|
then { postCheck = "${psmisc}/bin/killall test_suite || true"; }
|
|
|
|
else { }))
|