Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / servers / http / yaws / default.nix
blobf92db7be0852a2f09bb13d0fc08154d82049cfc5
1 {lib, stdenv, fetchFromGitHub, erlang, pam, perl, autoreconfHook }:
3 stdenv.mkDerivation rec {
4   pname = "yaws";
5   version = "2.2.0";
7   src = fetchFromGitHub {
8     owner = "erlyaws";
9     repo = pname;
10     rev = "${pname}-${version}";
11     hash = "sha256-acO8Vc8sZJl22HUml2kTxVswLEirqMbqHQdRIbkkcvs=";
12   };
14   configureFlags = [ "--with-extrainclude=${pam}/include/security" ];
16   nativeBuildInputs = [ autoreconfHook ];
17   buildInputs = [ erlang pam perl ];
19   postInstall = ''
20     sed -i "s#which #type -P #" $out/bin/yaws
21   '';
23   meta = with lib; {
24     description = "Webserver for dynamic content written in Erlang";
25     mainProgram = "yaws";
26     homepage = "https://github.com/erlyaws/yaws";
27     license = licenses.bsd2;
28     platforms = platforms.linux;
29     maintainers = [ ];
30   };