lol
1{lib, stdenv, fetchFromGitHub, erlang, pam, perl, autoreconfHook }:
2
3stdenv.mkDerivation rec {
4 pname = "yaws";
5 version = "2.1.1";
6
7 src = fetchFromGitHub {
8 owner = "erlyaws";
9 repo = pname;
10 rev = "${pname}-${version}";
11 hash = "sha256-F1qhq0SEChWw/EBodXKWTqMNmGoTwP2JgkmfANUFD9I=";
12 };
13
14 configureFlags = [ "--with-extrainclude=${pam}/include/security" ];
15
16 nativeBuildInputs = [ autoreconfHook ];
17 buildInputs = [ erlang pam perl ];
18
19 postInstall = ''
20 sed -i "s#which #type -P #" $out/bin/yaws
21 '';
22
23 meta = with lib; {
24 description = "A webserver for dynamic content written in Erlang.";
25 homepage = "https://github.com/erlyaws/yaws";
26 license = licenses.bsd2;
27 platforms = platforms.linux;
28 maintainers = with maintainers; [ goibhniu ];
29 };
30
31}