1 {lib, stdenv, fetchFromGitHub, erlang, pam, perl, autoreconfHook }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
10 rev = "${pname}-${version}";
11 hash = "sha256-acO8Vc8sZJl22HUml2kTxVswLEirqMbqHQdRIbkkcvs=";
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 = "Webserver for dynamic content written in Erlang";
26 homepage = "https://github.com/erlyaws/yaws";
27 license = licenses.bsd2;
28 platforms = platforms.linux;