phpExtensions.*: use `meta.broken` rather than filtering

Emily 8b7ca251 e06dae43

+12 -14
+12 -14
pkgs/top-level/php-packages.nix
··· 182 meta = { 183 description = "PHP upstream extension: ${name}"; 184 inherit (php.meta) maintainers homepage license; 185 - }; 186 })); 187 188 php = phpPackage; ··· 459 doCheck = stdenv.hostPlatform.isLinux; 460 } 461 { 462 - name = "imap"; 463 - buildInputs = [ uwimap openssl pam pcre2 libkrb5 ]; 464 - configureFlags = [ "--with-imap=${uwimap}" "--with-imap-ssl" "--with-kerberos" ]; 465 - # Using version from PECL on new PHP versions. 466 - enable = lib.versionOlder php.version "8.3"; 467 - } 468 - { 469 name = "intl"; 470 buildInputs = [ icu73 ]; 471 } ··· 560 internalDeps = [ php.extensions.pdo ]; 561 configureFlags = [ "--with-pdo-dblib=${freetds}" ]; 562 # Doesn't seem to work on darwin. 563 - enable = (!stdenv.hostPlatform.isDarwin); 564 doCheck = false; 565 } 566 { ··· 655 buildInputs = [ net-snmp openssl ]; 656 configureFlags = [ "--with-snmp" ]; 657 # net-snmp doesn't build on darwin. 658 - enable = (!stdenv.hostPlatform.isDarwin); 659 doCheck = false; 660 } 661 { ··· 810 "--with-zlib" 811 ]; 812 } 813 ]; 814 815 # Convert the list of attrs: ··· 818 # [ { name = <name>; value = <extension drv>; } ... ] 819 # 820 # which we later use listToAttrs to make all attrs available by name. 821 - # 822 - # Also filter out extensions based on the enable property. 823 namedExtensions = builtins.map 824 (drv: { 825 name = drv.name; 826 - value = mkExtension (builtins.removeAttrs drv [ "enable" ]); 827 }) 828 - (builtins.filter (i: i.enable or true) extensionData); 829 830 # Produce the final attribute set of all extensions defined. 831 in
··· 182 meta = { 183 description = "PHP upstream extension: ${name}"; 184 inherit (php.meta) maintainers homepage license; 185 + } // args.meta or { }; 186 })); 187 188 php = phpPackage; ··· 459 doCheck = stdenv.hostPlatform.isLinux; 460 } 461 { 462 name = "intl"; 463 buildInputs = [ icu73 ]; 464 } ··· 553 internalDeps = [ php.extensions.pdo ]; 554 configureFlags = [ "--with-pdo-dblib=${freetds}" ]; 555 # Doesn't seem to work on darwin. 556 + meta.broken = (!stdenv.hostPlatform.isDarwin); 557 doCheck = false; 558 } 559 { ··· 648 buildInputs = [ net-snmp openssl ]; 649 configureFlags = [ "--with-snmp" ]; 650 # net-snmp doesn't build on darwin. 651 + meta.broken = (!stdenv.hostPlatform.isDarwin); 652 doCheck = false; 653 } 654 { ··· 803 "--with-zlib" 804 ]; 805 } 806 + ] ++ lib.optionals (lib.versionOlder php.version "8.3") [ 807 + # Using version from PECL on new PHP versions. 808 + { 809 + name = "imap"; 810 + buildInputs = [ uwimap openssl pam pcre2 libkrb5 ]; 811 + configureFlags = [ "--with-imap=${uwimap}" "--with-imap-ssl" "--with-kerberos" ]; 812 + } 813 ]; 814 815 # Convert the list of attrs: ··· 818 # [ { name = <name>; value = <extension drv>; } ... ] 819 # 820 # which we later use listToAttrs to make all attrs available by name. 821 namedExtensions = builtins.map 822 (drv: { 823 name = drv.name; 824 + value = mkExtension drv; 825 }) 826 + extensionData; 827 828 # Produce the final attribute set of all extensions defined. 829 in