2022-10-21 18:38:19 +00:00
|
|
|
{lib, stdenv, fetchFromGitHub, erlang, pam, perl, autoreconfHook }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "yaws";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "2.1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "erlyaws";
|
|
|
|
repo = pname;
|
|
|
|
rev = "${pname}-${version}";
|
|
|
|
hash = "sha256-F1qhq0SEChWw/EBodXKWTqMNmGoTwP2JgkmfANUFD9I=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = [ "--with-extrainclude=${pam}/include/security" ];
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ erlang pam perl ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
sed -i "s#which #type -P #" $out/bin/yaws
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-10-21 18:38:19 +00:00
|
|
|
description = "A webserver for dynamic content written in Erlang.";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "yaws";
|
2022-10-21 18:38:19 +00:00
|
|
|
homepage = "https://github.com/erlyaws/yaws";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
2020-05-15 21:57:56 +00:00
|
|
|
maintainers = with maintainers; [ goibhniu ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|