mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 03:03:37 +00:00
1d513bc7d6
Semi-automatic update. These checks were performed: - built on NixOS - ran `/nix/store/946hqpkgmb964ilf2sbk9ln4kfy7jnkr-yaws-2.0.4/bin/yaws -v` and found version 2.0.4 - ran `/nix/store/946hqpkgmb964ilf2sbk9ln4kfy7jnkr-yaws-2.0.4/bin/yaws --version` and found version 2.0.4 - found 2.0.4 with grep in /nix/store/946hqpkgmb964ilf2sbk9ln4kfy7jnkr-yaws-2.0.4 - found 2.0.4 in filename of file in /nix/store/946hqpkgmb964ilf2sbk9ln4kfy7jnkr-yaws-2.0.4 cc "@goibhniu @the-kenny"
36 lines
878 B
Nix
36 lines
878 B
Nix
{stdenv, fetchurl, erlang, pam, perl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "yaws-${version}";
|
|
version = "2.0.4";
|
|
|
|
src = fetchurl {
|
|
url = "http://yaws.hyber.org/download/${name}.tar.gz";
|
|
sha256 = "1ig6q4waqlb6h1hhrly7hslfnqczlbm79vvhr5j7rp5a2p1pfrns";
|
|
};
|
|
|
|
# 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 ];
|
|
};
|
|
|
|
}
|