Skip to content

Commit

Permalink
php80: init at 8.0.29
Browse files Browse the repository at this point in the history
This is a consequence of PR NixOS/nixpkgs#239049
  • Loading branch information
drupol committed Jun 26, 2023
1 parent 0983b1d commit 252c278
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 7 deletions.
12 changes: 12 additions & 0 deletions pkgs/package-overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,18 @@ in
];
in
ourPatches ++ upstreamPatches;

buildInputs =
let
replaceOpenssl = pkg:
if (pkg == pkgs.openssl && lib.versionOlder prev.php.version "8.1") then
pkgs.openssl_1_1.overrideAttrs (old: {
meta = builtins.removeAttrs old.meta [ "knownVulnerabilities" ];
})
else
pkg;
in
builtins.map replaceOpenssl attrs.buildInputs;
});

pdo = prev.extensions.pdo.overrideAttrs (attrs: {
Expand Down
58 changes: 58 additions & 0 deletions pkgs/php/8.0.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{ prev, mkPhp }:

let
base = mkPhp {
version = "8.0.29";
hash = "sha256-SAGh8OFxcChnI6tUrNBFrHipZWAh1W8QSmRUPuySLhI=";
};
in
base.withExtensions (
{ all, ... }:

with all; (
[
bcmath
calendar
curl
ctype
dom
exif
fileinfo
filter
ftp
gd
gettext
gmp
iconv
imap
intl
ldap
mbstring
mysqli
mysqlnd
opcache
openssl
pcntl
pdo
pdo_mysql
pdo_odbc
pdo_pgsql
pdo_sqlite
pgsql
posix
readline
session
simplexml
sockets
soap
sodium
sysvsem
sqlite3
tokenizer
xmlreader
xmlwriter
zip
zlib
]
)
)
8 changes: 1 addition & 7 deletions pkgs/phps.nix
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,6 @@ let
mkPhp = args: prev.callPackage generic (_mkArgs args);
in
{
openssl_1_1 = prev.openssl_1_1.overrideAttrs (old: {
meta = builtins.removeAttrs old.meta [ "knownVulnerabilities" ];
});

php56 = import ./php/5.6.nix { inherit prev mkPhp; };

php70 = import ./php/7.0.nix { inherit prev mkPhp; };
Expand All @@ -140,9 +136,7 @@ in

php74 = import ./php/7.4.nix { inherit prev mkPhp; };

php80 = prev.php80.override {
inherit packageOverrides;
};
php80 = import ./php/8.0.nix { inherit prev mkPhp; };

php81 = prev.php81.override {
inherit packageOverrides;
Expand Down

0 comments on commit 252c278

Please sign in to comment.