1 {lib, stdenv, fetchFromGitHub, erlang, pam, perl, autoreconfHook }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
10 rev = "${pname}-${version}";
11 hash = "sha256-F1qhq0SEChWw/EBodXKWTqMNmGoTwP2JgkmfANUFD9I=";
14 configureFlags = [ "--with-extrainclude=${pam}/include/security" ];
16 nativeBuildInputs = [ autoreconfHook ];
17 buildInputs = [ erlang pam perl ];
20 sed -i "s#which #type -P #" $out/bin/yaws
24 description = "A webserver for dynamic content written in Erlang.";
26 homepage = "https://github.com/erlyaws/yaws";
27 license = licenses.bsd2;
28 platforms = platforms.linux;
29 maintainers = with maintainers; [ goibhniu ];