nixpkgs/pkgs/servers/http/yaws/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
793 B
Nix
Raw Normal View History

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 {
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
'';
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;
maintainers = with maintainers; [ goibhniu ];
2013-02-20 21:34:55 +00:00
};
}