2013-02-20 22:34:55 +01:00
|
|
|
{stdenv, fetchurl, erlang, pam, perl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "yaws-${version}";
|
2015-01-02 23:49:15 +01:00
|
|
|
version = "1.99";
|
2013-02-20 22:34:55 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://yaws.hyber.org/download/${name}.tar.gz";
|
2015-01-02 23:49:15 +01:00
|
|
|
sha256 = "057ymg84ji4pfi3xai6kis3mk8zks2ynbiam0x68cb4cb1yfzwcl";
|
2013-02-20 22:34:55 +01: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";
|
|
|
|
homepage = http://http://yaws.hyber.org;
|
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
2013-11-12 13:32:42 +01:00
|
|
|
maintainers = with maintainers; [ goibhniu the-kenny ];
|
2013-02-20 22:34:55 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|