2013-02-20 21:34:55 +00:00
|
|
|
{stdenv, fetchurl, erlang, pam, perl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "yaws-${version}";
|
2018-02-28 03:20:46 +00:00
|
|
|
version = "2.0.4";
|
2013-02-20 21:34:55 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://yaws.hyber.org/download/${name}.tar.gz";
|
2018-02-28 03:20:46 +00:00
|
|
|
sha256 = "1ig6q4waqlb6h1hhrly7hslfnqczlbm79vvhr5j7rp5a2p1pfrns";
|
2013-02-20 21:34:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# The tarball includes a symlink yaws -> yaws-1.95, which seems to be
|
|
|
|
# necessary for importing erlang files
|
|
|
|
unpackPhase = ''
|
|
|
|
tar xzf $src
|
|
|
|
cd $name
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = "--with-extrainclude=${pam}/include/security";
|
|
|
|
|
|
|
|
buildInputs = [ erlang pam perl ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
sed -i "s#which #type -P #" $out/bin/yaws
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A high performance HTTP 1.1 server in Erlang";
|
2017-08-03 19:38:05 +00:00
|
|
|
homepage = http://yaws.hyber.org;
|
2013-02-20 21:34:55 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
2013-11-12 12:32:42 +00:00
|
|
|
maintainers = with maintainers; [ goibhniu the-kenny ];
|
2013-02-20 21:34:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|