diff options
author | Yorick van Pelt <yorick@yorickvanpelt.nl> | 2022-10-09 11:11:37 +0200 |
---|---|---|
committer | Yorick van Pelt <yorick@yorickvanpelt.nl> | 2022-10-09 11:12:01 +0200 |
commit | cc1dbce261847370fb8a787972a22693b233c72e (patch) | |
tree | 4fbebf7bc591f02113cd786583cce0b3a5cb5b29 /pkgs/servers/http | |
parent | aa007170d5f6a966a2b33034672f7c66c627aba0 (diff) |
yaws: 2.0.6 -> 2.1.1
Diffstat (limited to 'pkgs/servers/http')
-rw-r--r-- | pkgs/servers/http/yaws/default.nix | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/pkgs/servers/http/yaws/default.nix b/pkgs/servers/http/yaws/default.nix index be22ebdd36c9d..7609c6ea54549 100644 --- a/pkgs/servers/http/yaws/default.nix +++ b/pkgs/servers/http/yaws/default.nix @@ -1,23 +1,19 @@ -{lib, stdenv, fetchurl, erlang, pam, perl }: +{lib, stdenv, fetchFromGitHub, erlang, pam, perl, autoreconfHook }: stdenv.mkDerivation rec { pname = "yaws"; - version = "2.0.6"; + version = "2.1.1"; - src = fetchurl { - url = "http://yaws.hyber.org/download/${pname}-${version}.tar.gz"; - sha256 = "03nh97g7smsgm6sw5asssmlq7zgx6y2gnn7jn0lv2x5mkf5nzyb9"; + src = fetchFromGitHub { + owner = "erlyaws"; + repo = pname; + rev = "${pname}-${version}"; + hash = "sha256-F1qhq0SEChWw/EBodXKWTqMNmGoTwP2JgkmfANUFD9I="; }; - # The tarball includes a symlink yaws -> yaws-1.95, which seems to be - # necessary for importing erlang files - unpackPhase = '' - tar xzf $src - cd $name - ''; - configureFlags = [ "--with-extrainclude=${pam}/include/security" ]; + nativeBuildInputs = [ autoreconfHook ]; buildInputs = [ erlang pam perl ]; postInstall = '' @@ -25,8 +21,8 @@ stdenv.mkDerivation rec { ''; meta = with lib; { - description = "A high performance HTTP 1.1 server in Erlang"; - homepage = "http://yaws.hyber.org"; + description = "A webserver for dynamic content written in Erlang."; + homepage = "https://github.com/erlyaws/yaws"; license = licenses.bsd2; platforms = platforms.linux; maintainers = with maintainers; [ goibhniu ]; |