2022-10-09 09:11:37 +00:00
|
|
|
{lib, stdenv, fetchFromGitHub, erlang, pam, perl, autoreconfHook }:
|
2013-02-20 21:34:55 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "yaws";
|
2022-10-09 09:11:37 +00:00
|
|
|
version = "2.1.1";
|
2013-02-20 21:34:55 +00:00
|
|
|
|
2022-10-09 09:11:37 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "erlyaws";
|
|
|
|
repo = pname;
|
|
|
|
rev = "${pname}-${version}";
|
|
|
|
hash = "sha256-F1qhq0SEChWw/EBodXKWTqMNmGoTwP2JgkmfANUFD9I=";
|
2013-02-20 21:34:55 +00:00
|
|
|
};
|
|
|
|
|
2018-07-25 21:44:21 +00:00
|
|
|
configureFlags = [ "--with-extrainclude=${pam}/include/security" ];
|
2013-02-20 21:34:55 +00:00
|
|
|
|
2022-10-09 09:11:37 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2013-02-20 21:34:55 +00:00
|
|
|
buildInputs = [ erlang pam perl ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
sed -i "s#which #type -P #" $out/bin/yaws
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-10-09 09:11:37 +00:00
|
|
|
description = "A webserver for dynamic content written in Erlang.";
|
|
|
|
homepage = "https://github.com/erlyaws/yaws";
|
2013-02-20 21:34:55 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
2020-05-09 09:25:07 +00:00
|
|
|
maintainers = with maintainers; [ goibhniu ];
|
2013-02-20 21:34:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|