3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/http/myserver/default.nix
Ludovic Courtès d0f60bf3a1 GNU MyServer 0.11.
svn path=/nixpkgs/trunk/; revision=28750
2011-08-22 17:38:33 +00:00

54 lines
1.5 KiB
Nix

{ fetchurl, stdenv, libgcrypt, libevent, libidn, gnutls
, libxml2, zlib, guile, texinfo, cppunit, xz, psmisc }:
let version = "0.11"; in
stdenv.mkDerivation (rec {
name = "myserver-${version}";
src = fetchurl {
url = "mirror://gnu/myserver/${version}/${name}.tar.xz";
sha256 = "02y3vv4hxpy5h710y79s8ipzshhc370gbz1wm85x0lnq5nqxj2ax";
};
patches =
[ ./disable-dns-lookup-in-chroot.patch ];
buildInputs =
[ libgcrypt libevent libidn gnutls libxml2 zlib guile texinfo xz ]
++ stdenv.lib.optional doCheck cppunit;
makeFlags = [ "V=1" ];
doCheck = true;
enableParallelBuilding = true;
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+";
maintainers = [ stdenv.lib.maintainers.ludo ];
# libevent fails to build on Cygwin and Guile has troubles on Darwin.
platforms = stdenv.lib.platforms.gnu;
};
}
//
# 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 { }))