2024-01-02 11:29:13 +00:00
|
|
|
{ callPackage
|
|
|
|
, runCommand
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, nixosTests
|
|
|
|
, withQuic ? false
|
|
|
|
, fetchpatch
|
|
|
|
, ...
|
|
|
|
}@args:
|
|
|
|
|
|
|
|
callPackage ../nginx/generic.nix args rec {
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "1.4.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
pname = if withQuic then "angieQuic" else "angie";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://download.angie.software/files/angie-${version}.tar.gz";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-g6PyuyulnltnZJWiZ01iYG1k6Lz5nO+gneb8M4q3WHo=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = lib.optional 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 ];
|
|
|
|
};
|
|
|
|
}
|