From bb6abb6e5b6955625e7d9872bcfe1b399819128e Mon Sep 17 00:00:00 2001 From: Armeen Mahdian Date: Thu, 21 Apr 2022 20:23:46 -0500 Subject: [PATCH] unit: drop python2 support --- pkgs/servers/http/unit/default.nix | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkgs/servers/http/unit/default.nix b/pkgs/servers/http/unit/default.nix index e6fcaaca4bcf..4db762ec40d4 100644 --- a/pkgs/servers/http/unit/default.nix +++ b/pkgs/servers/http/unit/default.nix @@ -1,6 +1,5 @@ { lib, stdenv, fetchFromGitHub, nixosTests, which , pcre2 -, withPython2 ? false, python2 , withPython3 ? true, python3, ncurses , withPHP74 ? false, php74 , withPHP80 ? true, php80 @@ -42,7 +41,6 @@ in stdenv.mkDerivation rec { nativeBuildInputs = [ which ]; buildInputs = [ pcre2.dev ] - ++ optional withPython2 python2 ++ optionals withPython3 [ python3 ncurses ] ++ optional withPHP74 php74-unit ++ optional withPHP80 php80-unit @@ -66,7 +64,6 @@ in stdenv.mkDerivation rec { usedPhp80 = optionals withPHP80 php80-unit; postConfigure = '' - ${optionalString withPython2 "./configure python --module=python2 --config=python2-config --lib-path=${python2}/lib"} ${optionalString withPython3 "./configure python --module=python3 --config=python3-config --lib-path=${python3}/lib"} ${optionalString withPHP74 "./configure php --module=php74 --config=${php74-unit.unwrapped.dev}/bin/php-config --lib-path=${php74-unit}/lib"} ${optionalString withPHP80 "./configure php --module=php80 --config=${php80-unit.unwrapped.dev}/bin/php-config --lib-path=${php80-unit}/lib"}