Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
49 lines
1.2 KiB
Nix
49 lines
1.2 KiB
Nix
{ callPackage
|
|
, lib
|
|
, fetchurl
|
|
, nixosTests
|
|
, withAcme ? false
|
|
, withQuic ? false
|
|
, ...
|
|
}@args:
|
|
|
|
callPackage ../nginx/generic.nix args rec {
|
|
version = "1.7.0";
|
|
pname = if withQuic then "angieQuic" else "angie";
|
|
|
|
src = fetchurl {
|
|
url = "https://download.angie.software/files/angie-${version}.tar.gz";
|
|
hash = "sha256-B5fm4BgV/bMLvJ9wOAA4fJyLLGARManDlQmjPXPyHAE=";
|
|
};
|
|
|
|
configureFlags = lib.optionals withAcme [
|
|
"--with-http_acme_module"
|
|
"--http-acme-client-path=/var/lib/nginx/acme"
|
|
] ++ lib.optionals withQuic [
|
|
"--with-http_v3_module"
|
|
];
|
|
|
|
preInstall = ''
|
|
if [[ -e man/angie.8 ]]; then
|
|
installManPage man/angie.8
|
|
fi
|
|
'';
|
|
|
|
postInstall = ''
|
|
ln -s $out/bin/nginx $out/bin/angie
|
|
'';
|
|
|
|
passthru.tests = {
|
|
angie = nixosTests.nginx-variants.angie;
|
|
angie-api = nixosTests.angie-api;
|
|
angie-http3 = nixosTests.nginx-http3.angieQuic;
|
|
};
|
|
|
|
meta = {
|
|
description = "Angie is an efficient, powerful, and scalable web server that was forked from nginx";
|
|
homepage = "https://angie.software/en/";
|
|
license = lib.licenses.bsd2;
|
|
platforms = lib.platforms.all;
|
|
maintainers = with lib.maintainers; [ izorkin ];
|
|
};
|
|
}
|