Skip to content

Commit

Permalink
phps: fix php81, php82, php83
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Sep 13, 2023
1 parent 0f52f67 commit 6218aee
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 38 deletions.
57 changes: 32 additions & 25 deletions pkgs/php/8.1.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,42 @@

let
archives = [
{ version = "8.1.0"; hash = ""; inherit packageOverrides; }
{ version = "8.1.1"; hash = ""; inherit packageOverrides; }
{ version = "8.1.2"; hash = ""; inherit packageOverrides; }
{ version = "8.1.3"; hash = ""; inherit packageOverrides; }
{ version = "8.1.4"; hash = ""; inherit packageOverrides; }
{ version = "8.1.5"; hash = ""; inherit packageOverrides; }
{ version = "8.1.6"; hash = ""; inherit packageOverrides; }
{ version = "8.1.7"; hash = ""; inherit packageOverrides; }
{ version = "8.1.8"; hash = ""; inherit packageOverrides; }
{ version = "8.1.9"; hash = ""; inherit packageOverrides; }
{ version = "8.1.10"; hash = ""; inherit packageOverrides; }
{ version = "8.1.11"; hash = ""; inherit packageOverrides; }
{ version = "8.1.12"; hash = ""; inherit packageOverrides; }
{ version = "8.1.13"; hash = ""; inherit packageOverrides; }
{ version = "8.1.14"; hash = ""; inherit packageOverrides; }
{ version = "8.1.15"; hash = ""; inherit packageOverrides; }
{ version = "8.1.16"; hash = ""; inherit packageOverrides; }
{ version = "8.1.17"; hash = ""; inherit packageOverrides; }
{ version = "8.1.18"; hash = ""; inherit packageOverrides; }
{ version = "8.1.19"; hash = ""; inherit packageOverrides; }
{ version = "8.1.20"; hash = ""; inherit packageOverrides; }
{ version = "8.1.21"; hash = ""; inherit packageOverrides; }
{ version = "8.1.22"; hash = ""; inherit packageOverrides; }
{ version = "8.1.23"; hash = ""; inherit packageOverrides; }
{ version = "8.1.0"; hash = "sha256-ByXtK66hJUlqiYRV1QGndGAhiyoM+tdz+pMi9JG4K2E="; inherit packageOverrides; }
{ version = "8.1.1"; hash = "sha256-j4vJytbNEk7cER99sKEJdF4vY4dwoQGzwiopU/eptA4="; inherit packageOverrides; }
{ version = "8.1.2"; hash = "sha256-kT3H3UOIQn+jPqSsiYNOhW/1OU9CGOrOJgo6J59bU6k="; inherit packageOverrides; }
{ version = "8.1.3"; hash = "sha256-NUxOLFBgRuyoEtH8JSaISi9UtePSDvDt6RmmnrIy0L4="; inherit packageOverrides; }
{ version = "8.1.4"; hash = "sha256-s/aIy2l1hSODi45/UJqu8BUhM9m4SoSgt89o7q/B33Y="; inherit packageOverrides; }
{ version = "8.1.5"; hash = "sha256-gn3lZ3HDq4MToGmBLxX27EmYnVEK69Dc4YCDnG2Nb/M="; inherit packageOverrides; }
{ version = "8.1.6"; hash = "sha256-ezUzBLdAdVT3DT4QGiJqH8It7K5cTELtJwxOOJv6G2Y="; inherit packageOverrides; }
{ version = "8.1.7"; hash = "sha256-uBZ1PrAFUR5pXZCUXCcJPDI2zHPbEmJlbZ+t1z6tfp0="; inherit packageOverrides; }
{ version = "8.1.8"; hash = "sha256-uIFaWgJDFFPUJh41mL0fKFFuTANU8yjBKJDyV4cOTAE="; inherit packageOverrides; }
{ version = "8.1.9"; hash = "sha256-nrsOLlcdtv1ZMEKNyy0Z7T4FAzjsHxNHwoLK6S/Ahv8="; inherit packageOverrides; }
{ version = "8.1.10"; hash = "sha256-LejgQCKF98Voh97+ZRkiMIre1YumC+/PO3dyAgnjHxA="; inherit packageOverrides; }
{ version = "8.1.11"; hash = "sha256-r2JQsYtEA7bu/5tKAnhqyGoSoggUH29lR495JW9H8kY="; inherit packageOverrides; }
{ version = "8.1.12"; hash = "sha256-+H1z6Rf6z3jee83lP8L6pNTb4Eh6lAbhq2jIro8z6wM="; inherit packageOverrides; }
{ version = "8.1.13"; hash = "sha256-k/z9+qo9CUoP2xjOCNIPINUm7j8HoUaoqOyCzgCyN8o="; inherit packageOverrides; }
{ version = "8.1.14"; hash = "sha256-FMqZMz3WBKUEojaJRkhaw103nE2pbSjcUV1+tQLf+jI="; inherit packageOverrides; }
{ version = "8.1.15"; hash = "sha256-GNoKlCKPQgf4uePiPogfK3TQ1srvuQi9tYY9SgEDXMY="; inherit packageOverrides; }
{ version = "8.1.16"; hash = "sha256-zZ8OoU2C2UVVh6SaC2yAKnuNj/eXA/n0ixfbAQ+2M84="; inherit packageOverrides; }
{ version = "8.1.17"; hash = "sha256-9Pspig6wkflE7OusV7dtqudoqXDC9RYQpask802MDK8="; inherit packageOverrides; }
{ version = "8.1.18"; hash = "sha256-0qww1rV0/KWU/gzAHAaT4jWFsnRD40KwqrBydM3kQW4="; inherit packageOverrides; }
{ version = "8.1.19"; hash = "sha256-ZCByB/2jC+kmou8fZv8ma/H9x+AzObyZ+7oKEkXkJ5s="; inherit packageOverrides; }
{ version = "8.1.20"; hash = "sha256-VVeFh1FKJwdQD4UxnlfA1N+biAPNsmVmWVrEv0WdxN0="; inherit packageOverrides; }
{ version = "8.1.21"; hash = "sha256-bqSegzXWMhd/VrUHFgqhUcewIBhXianBSFn85dSgd20="; inherit packageOverrides; }
{ version = "8.1.22"; hash = "sha256-mSNU44LGxhjQHtS+Br7qjewxeLFBU99k08jEi4Xp+8I="; inherit packageOverrides; }
{ version = "8.1.23"; hash = "sha256-kppieFF32okt3/ygdLqy8f9XhHOg1K25FcEvXz407Bs="; inherit packageOverrides; }
];

makeSrc = item: {
src = prev.fetchurl {
url = "https://www.php.net/distributions/php-${item.version}.tar.bz2";
inherit (item) hash;
};
};

phps = builtins.foldl'
(acc: item: acc // {
"php${builtins.replaceStrings [ "." "-" ] [ "" "" ] item.version}" = prev.php81.override item;
"php${builtins.replaceStrings [ "." "-" ] [ "" "" ] item.version}" = prev.php81.override { inherit packageOverrides; phpAttrsOverrides = attrs: ((builtins.removeAttrs item [ "packageOverrides" ]) // makeSrc item); };
})
{ }
archives;
Expand Down
31 changes: 19 additions & 12 deletions pkgs/php/8.2.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,29 @@

let
archives = [
{ version = "8.2.0"; hash = ""; inherit packageOverrides; }
{ version = "8.2.1"; hash = ""; inherit packageOverrides; }
{ version = "8.2.2"; hash = ""; inherit packageOverrides; }
{ version = "8.2.3"; hash = ""; inherit packageOverrides; }
{ version = "8.2.4"; hash = ""; inherit packageOverrides; }
{ version = "8.2.5"; hash = ""; inherit packageOverrides; }
{ version = "8.2.6"; hash = ""; inherit packageOverrides; }
{ version = "8.2.7"; hash = ""; inherit packageOverrides; }
{ version = "8.2.8"; hash = ""; inherit packageOverrides; }
{ version = "8.2.9"; hash = ""; inherit packageOverrides; }
{ version = "8.2.10"; hash = ""; inherit packageOverrides; }
{ version = "8.2.0"; hash = "sha256-G/T8pmP5PZ4LSQm9bq4Fg6HOOD5/Bd8Sbyjycvof1Ro="; inherit packageOverrides; }
{ version = "8.2.1"; hash = "sha256-ddb482WZPsDR2cYoHUVX5v7sWiYZSkaLiwFFnRd++yk="; inherit packageOverrides; }
{ version = "8.2.2"; hash = "sha256-9SI6UnTtqLQMGeR94N5GeMZdZEAcz3EOJGSWLrgTaAQ="; inherit packageOverrides; }
{ version = "8.2.3"; hash = "sha256-h7tYhl849eKUGBMCkVLOohAv4pYbtNaLiPgx3dBUjQ8="; inherit packageOverrides; }
{ version = "8.2.4"; hash = "sha256-eRhvlL1RDbhuMeU13USCd6Hrkqh4eDA6Hq1EYC2LEZc="; inherit packageOverrides; }
{ version = "8.2.5"; hash = "sha256-5agGY8yk9gRK2GpIl5gUfHrwN+ypb2zTV6s20oy2N1c="; inherit packageOverrides; }
{ version = "8.2.6"; hash = "sha256-RKcMUvU3ZiwQ2R7tv1H9dlyZYb5rolCO1jv3omzdMQA="; inherit packageOverrides; }
{ version = "8.2.7"; hash = "sha256-W/sqNcZ5Ib3K3VyQyykK11N9JNoROl6LwtZGsC3nSI8="; inherit packageOverrides; }
{ version = "8.2.8"; hash = "sha256-mV7UAJx5F8li0xg3oaNljzbUr081e2c8l//b5kA/hRc="; inherit packageOverrides; }
{ version = "8.2.9"; hash = "sha256-SEYLmUrn61CWoxD0TRPoZd4XcRBNSlUNUwcr5YpvF2w="; inherit packageOverrides; }
{ version = "8.2.10"; hash = "sha256-zJg06PG2E9dneviEPDZR6YKavKjr/pB5JR0Nhdmgqj4="; inherit packageOverrides; }
];

makeSrc = item: {
src = prev.fetchurl {
url = "https://www.php.net/distributions/php-${item.version}.tar.bz2";
inherit (item) hash;
};
};

phps = builtins.foldl'
(acc: item: acc // {
"php${builtins.replaceStrings [ "." "-" ] [ "" "" ] item.version}" = prev.php82.override item;
"php${builtins.replaceStrings [ "." "-" ] [ "" "" ] item.version}" = prev.php82.override { inherit packageOverrides; phpAttrsOverrides = attrs: ((builtins.removeAttrs item [ "packageOverrides" ]) // makeSrc item); };
})
{ }
archives;
Expand Down
2 changes: 1 addition & 1 deletion pkgs/php/8.3.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let

phps = builtins.foldl'
(acc: item: acc // {
"php${builtins.replaceStrings [ "." "-" ] [ "" "" ] item.version}" = prev.php83.override item;
"php${builtins.replaceStrings [ "." "-" ] [ "" "" ] item.version}" = prev.php83.override { inherit packageOverrides; phpAttrsOverrides = attrs: (builtins.removeAttrs item ["packageOverrides"]); };
})
{ }
archives;
Expand Down

0 comments on commit 6218aee

Please sign in to comment.