forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
36 lines
874 B
Nix
36 lines
874 B
Nix
{lib, stdenv, fetchurl, erlang, pam, perl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "yaws";
|
|
version = "2.0.6";
|
|
|
|
src = fetchurl {
|
|
url = "http://yaws.hyber.org/download/${pname}-${version}.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 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 ];
|
|
};
|
|
|
|
}
|