mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
fff21f417f
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/yaws/versions. These checks were done: - built on NixOS - /nix/store/vc5va0app2hqsv6521jp8xgqdx2pzpl9-yaws-2.0.6/bin/yaws passed the binary check. - 0 of 1 passed binary check by having a zero exit code. - 1 of 1 passed binary check by having the new version present in output. - found 2.0.6 with grep in /nix/store/vc5va0app2hqsv6521jp8xgqdx2pzpl9-yaws-2.0.6 - directory tree listing: https://gist.github.com/7cf8f0c6f8d5415c26e238c51d662ef6 - du listing: https://gist.github.com/6966b688f7264a9be53bbb606d4b7852
36 lines
878 B
Nix
36 lines
878 B
Nix
{stdenv, fetchurl, erlang, pam, perl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "yaws-${version}";
|
|
version = "2.0.6";
|
|
|
|
src = fetchurl {
|
|
url = "http://yaws.hyber.org/download/${name}.tar.gz";
|
|
sha256 = "03nh97g7smsgm6sw5asssmlq7zgx6y2gnn7jn0lv2x5mkf5nzyb9";
|
|
};
|
|
|
|
# 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";
|
|
|
|
buildInputs = [ erlang pam perl ];
|
|
|
|
postInstall = ''
|
|
sed -i "s#which #type -P #" $out/bin/yaws
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A high performance HTTP 1.1 server in Erlang";
|
|
homepage = http://yaws.hyber.org;
|
|
license = licenses.bsd2;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ goibhniu the-kenny ];
|
|
};
|
|
|
|
}
|