depot/third_party/nixpkgs/pkgs/servers/http/yaws/default.nix
Default email 66604c92c1 Project import generated by Copybara.
GitOrigin-RevId: 32b8ed738096bafb4cdb7f70347a0f63f9f40151
2020-05-15 23:57:56 +02:00

35 lines
876 B
Nix

{stdenv, fetchurl, erlang, pam, perl }:
stdenv.mkDerivation rec {
pname = "yaws";
version = "2.0.6";
src = fetchurl {
url = "http://yaws.hyber.org/download/${pname}-${version}.tar.gz";
sha256 = "03nh97g7smsgm6sw5asssmlq7zgx6y2gnn7jn0lv2x5mkf5nzyb9";
};
# 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://yaws.hyber.org";
license = licenses.bsd2;
platforms = platforms.linux;
maintainers = with maintainers; [ goibhniu ];
};
}