mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 20:21:14 +00:00
unit: init at v1.6
This commit is contained in:
parent
ae49c73644
commit
ef5161984c
67
pkgs/servers/http/unit/default.nix
Normal file
67
pkgs/servers/http/unit/default.nix
Normal file
|
@ -0,0 +1,67 @@
|
|||
{ stdenv, fetchurl
|
||||
, which
|
||||
, python
|
||||
, php71
|
||||
, php72
|
||||
, perl526
|
||||
, perl
|
||||
, perldevel
|
||||
, ruby_2_3
|
||||
, ruby_2_4
|
||||
, ruby
|
||||
, withSSL ? true, openssl ? null
|
||||
, withIPv6 ? true
|
||||
, withDebug ? false
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "1.6";
|
||||
name = "unit-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://unit.nginx.org/download/${name}.tar.gz";
|
||||
sha256 = "0lws5xpzkcmv0gc7vi8pgnymin02dq4gw0zb41jfzq0vbljxxl14";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
which
|
||||
python
|
||||
php71
|
||||
php72
|
||||
perl526
|
||||
perl
|
||||
perldevel
|
||||
ruby_2_3
|
||||
ruby_2_4
|
||||
ruby
|
||||
] ++ optional withSSL openssl;
|
||||
|
||||
configureFlags = [
|
||||
"--control=unix:/run/control.unit.sock"
|
||||
"--pid=/run/unit.pid"
|
||||
] ++ optional withSSL [ "--openssl" ]
|
||||
++ optional (!withIPv6) [ "--no-ipv6" ]
|
||||
++ optional withDebug [ "--debug" ];
|
||||
|
||||
postConfigure = ''
|
||||
./configure python --module=python --config=${python}/bin/python-config --lib-path=${python}/lib
|
||||
./configure php --module=php71 --config=${php71.dev}/bin/php-config --lib-path=${php71}/lib
|
||||
./configure php --module=php72 --config=${php72.dev}/bin/php-config --lib-path=${php72}/lib
|
||||
./configure perl --module=perl526 --perl=${perl526}/bin/perl
|
||||
./configure perl --module=perl --perl=${perl}/bin/perl
|
||||
./configure perl --module=perl529 --perl=${perldevel}/bin/perl
|
||||
./configure ruby --module=ruby23 --ruby=${ruby_2_3}/bin/ruby
|
||||
./configure ruby --module=ruby24 --ruby=${ruby_2_4}/bin/ruby
|
||||
./configure ruby --module=ruby --ruby=${ruby}/bin/ruby
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Dynamic web and application server, designed to run applications in multiple languages.";
|
||||
homepage = https://unit.nginx.org/;
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ izorkin ];
|
||||
};
|
||||
}
|
|
@ -7829,7 +7829,6 @@ in
|
|||
php = php72;
|
||||
});
|
||||
|
||||
|
||||
inherit (callPackages ../development/interpreters/php { })
|
||||
php71
|
||||
php72;
|
||||
|
@ -7846,6 +7845,20 @@ in
|
|||
config.php.apxs2 = false;
|
||||
};
|
||||
|
||||
php-unit = php72-unit;
|
||||
|
||||
php71-unit = php71.override {
|
||||
config.php.embed = true;
|
||||
config.php.apxs2 = false;
|
||||
config.php.fpm = false;
|
||||
};
|
||||
|
||||
php72-unit = php72.override {
|
||||
config.php.embed = true;
|
||||
config.php.apxs2 = false;
|
||||
config.php.fpm = false;
|
||||
};
|
||||
|
||||
picoc = callPackage ../development/interpreters/picoc {};
|
||||
|
||||
picolisp = callPackage ../development/interpreters/picolisp {};
|
||||
|
@ -13514,6 +13527,11 @@ in
|
|||
|
||||
neard = callPackage ../servers/neard { };
|
||||
|
||||
unit = callPackage ../servers/http/unit {
|
||||
php71 = php71-unit;
|
||||
php72 = php72-unit;
|
||||
};
|
||||
|
||||
nginx = nginxStable;
|
||||
|
||||
nginxStable = callPackage ../servers/http/nginx/stable.nix {
|
||||
|
|
Loading…
Reference in a new issue