unit: 1.20.0 -> 1.21.0

This commit is contained in:
Izorkin 2020-11-20 10:33:42 +03:00
parent 26803925aa
commit d78ef1f3b5
No known key found for this signature in database
GPG Key ID: 1436C1B3F3679F09
1 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,5 @@
{ stdenv, fetchFromGitHub, nixosTests, which { stdenv, fetchFromGitHub, nixosTests, which
, pcre2
, withPython2 ? false, python2 , withPython2 ? false, python2
, withPython3 ? true, python3, ncurses , withPython3 ? true, python3, ncurses
, withPHP73 ? false, php73 , withPHP73 ? false, php73
@ -30,19 +31,19 @@ let
php74-unit = php74.override phpConfig; php74-unit = php74.override phpConfig;
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
version = "1.20.0"; version = "1.21.0";
pname = "unit"; pname = "unit";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "nginx"; owner = "nginx";
repo = "unit"; repo = pname;
rev = version; rev = version;
sha256 = "1qmcz01ifmd80qgpvf1y8nhad6yk56772xdhqvwfxn3mdjfqvcs8"; sha256 = "1jczdxixxyj16w10pkcplchbqvx3m32nkmcl0hqap5ffqj08mmf7";
}; };
nativeBuildInputs = [ which ]; nativeBuildInputs = [ which ];
buildInputs = [ ] buildInputs = [ pcre2.dev ]
++ optional withPython2 python2 ++ optional withPython2 python2
++ optionals withPython3 [ python3 ncurses ] ++ optionals withPython3 [ python3 ncurses ]
++ optional withPHP73 php73-unit ++ optional withPHP73 php73-unit