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";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "2.2.0";
|
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}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-acO8Vc8sZJl22HUml2kTxVswLEirqMbqHQdRIbkkcvs=";
|
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; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "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;
|
2024-07-27 06:49:29 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|