0ab54def16
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 - ran ‘/nix/store/jyan70fmxqlifcsfk6zidpbapjnclw8g-yaws-2.0.5/bin/yaws -v’ and found version 2.0.5 - ran ‘/nix/store/jyan70fmxqlifcsfk6zidpbapjnclw8g-yaws-2.0.5/bin/yaws --version’ and found version 2.0.5 - found 2.0.5 with grep in /nix/store/jyan70fmxqlifcsfk6zidpbapjnclw8g-yaws-2.0.5 - directory tree listing: https://gist.github.com/2cc3d4631b98fff26e8453c8e0b92ba8
35 lines
878 B
Nix
35 lines
878 B
Nix
{stdenv, fetchurl, erlang, pam, perl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "yaws-${version}";
|
|
version = "2.0.5";
|
|
|
|
src = fetchurl {
|
|
url = "http://yaws.hyber.org/download/${name}.tar.gz";
|
|
sha256 = "00bnvf26xlhm3v3c6jzk5kcdk8jkwr1gbd2f4h329lyrpjsx30my";
|
|
};
|
|
|
|
# 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 ];
|
|
};
|
|
|
|
}
|