nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 52 lines 1.2 kB view raw
1{ 2 callPackage, 3 lib, 4 fetchurl, 5 nixosTests, 6 withAcme ? false, 7 withQuic ? false, 8 ... 9}@args: 10 11callPackage ../nginx/generic.nix args rec { 12 version = "1.9.1"; 13 pname = if withQuic then "angieQuic" else "angie"; 14 15 src = fetchurl { 16 url = "https://download.angie.software/files/angie-${version}.tar.gz"; 17 hash = "sha256-rxHMBt/r58F4MjdbNIqNeGrwUs785f+vqqiYSE4YzjY="; 18 }; 19 20 configureFlags = 21 lib.optionals withAcme [ 22 "--with-http_acme_module" 23 "--http-acme-client-path=/var/lib/nginx/acme" 24 ] 25 ++ lib.optionals withQuic [ 26 "--with-http_v3_module" 27 ]; 28 29 preInstall = '' 30 if [[ -e man/angie.8 ]]; then 31 installManPage man/angie.8 32 fi 33 ''; 34 35 postInstall = '' 36 ln -s $out/bin/nginx $out/bin/angie 37 ''; 38 39 passthru.tests = { 40 angie = nixosTests.nginx-variants.angie; 41 angie-api = nixosTests.angie-api; 42 angie-http3 = nixosTests.nginx-http3.angieQuic; 43 }; 44 45 meta = { 46 description = "Angie is an efficient, powerful, and scalable web server that was forked from nginx"; 47 homepage = "https://angie.software/en/"; 48 license = lib.licenses.bsd2; 49 platforms = lib.platforms.all; 50 maintainers = with lib.maintainers; [ izorkin ]; 51 }; 52}