2021-01-11 07:54:33 +00:00
|
|
|
{lib, stdenv, fetchurl, erlang, pam, perl }:
|
2013-02-20 21:34:55 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "yaws";
|
2018-07-03 21:51:48 +01:00
|
|
|
version = "2.0.6";
|
2013-02-20 21:34:55 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "http://yaws.hyber.org/download/${pname}-${version}.tar.gz";
|
2018-07-03 21:51:48 +01:00
|
|
|
sha256 = "03nh97g7smsgm6sw5asssmlq7zgx6y2gnn7jn0lv2x5mkf5nzyb9";
|
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
|
|
|
|
'';
|
|
|
|
|
2018-07-25 22:44:21 +01:00
|
|
|
configureFlags = [ "--with-extrainclude=${pam}/include/security" ];
|
2013-02-20 21:34:55 +00:00
|
|
|
|
|
|
|
buildInputs = [ erlang pam perl ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
sed -i "s#which #type -P #" $out/bin/yaws
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2013-02-20 21:34:55 +00:00
|
|
|
description = "A high performance HTTP 1.1 server in Erlang";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://yaws.hyber.org";
|
2013-02-20 21:34:55 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
2020-05-09 10:25:07 +01:00
|
|
|
maintainers = with maintainers; [ goibhniu ];
|
2013-02-20 21:34:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|