Skip to content

Commit

Permalink
work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Sep 12, 2023
1 parent a42ba9f commit 5393edd
Show file tree
Hide file tree
Showing 12 changed files with 821 additions and 417 deletions.
4 changes: 1 addition & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
];
};
in rec {
packages = {
inherit (pkgs) php php56 php70 php71 php72 php73 php74 php80 php81 php82 php83;
};
packages = pkgs.phps;

checks = import ./checks.nix {
inherit packages pkgs system;
Expand Down
160 changes: 105 additions & 55 deletions pkgs/php/5.6.nix
Original file line number Diff line number Diff line change
@@ -1,60 +1,110 @@
{ prev, mkPhp }:
{ prev, mkPhp, ... }:

let
base = mkPhp {
version = "5.6.40";
hash = "sha256-/9Al00YjVTqy9/2Psh0Mnm+fow3FZcoDode3YwI/ugA=";
};
archives = [
{ version = "5.6.0"; rev = "php-5.6.0"; hash = "sha256-CXrxvjT8c5Zeb4QB/RDnPrVuGWntT/1pH7fpFgbQ/Ak="; }
{ version = "5.6.1"; rev = "php-5.6.1"; hash = "sha256-gsHM0Xgw1pfXpNdbtg6hK+WPqAtNuhAel9saY3LKRfA="; }
{ version = "5.6.2"; rev = "php-5.6.2"; hash = "sha256-Zx3PH2NkEMY7uesBXEwYDZBPVDb4Ehe+Ctv1Lam+zbU="; }
{ version = "5.6.3"; rev = "php-5.6.3"; hash = "sha256-iYayASTRRDDXlRZeR4Ae8GWjjVhVvqOdDUexOrmtQAk="; }
{ version = "5.6.4"; rev = "php-5.6.4"; hash = "sha256-V2+QAbYS9d3CL0RzEbvsMh4slZtqUiWdZkxLoE7wRPE="; }
{ version = "5.6.5"; rev = "php-5.6.5"; hash = "sha256-ratMB3VRKlygrnTgjv3JQdklKbdSg+D0TT9Tgizf0G0="; }
{ version = "5.6.6"; rev = "php-5.6.6"; hash = "sha256-CWJcm2XgyBmNx2mVo18P7sDhPqRIlSbmSgCVSxKtu0w="; }
{ version = "5.6.7"; rev = "php-5.6.7"; hash = "sha256-ApVPt0xhp4edSOvc1Oy3iqAFb0IVypsJYjLeKOuPF7w="; }
{ version = "5.6.8"; rev = "php-5.6.8"; hash = "sha256-CvAEV0XWHut0o+p0RSmiSBsny2idpyDmwCUGdQQ3JOQ="; }
{ version = "5.6.9"; rev = "php-5.6.9"; hash = "sha256-GdO4e3uLujviTPbXV9FrcjqYiBw6+NFUaf0lUB6avLk="; }
{ version = "5.6.10"; rev = "php-5.6.10"; hash = "sha256-Clecgcck6kGBXu4Mqo6n2O6zAkWFGdjMT8WwVVd8jEU="; }
{ version = "5.6.11"; rev = "php-5.6.11"; hash = "sha256-vWsmCBZ2TCZyRHSerQdIISDb+NGSDru7DcsqpBEDOGY="; }
{ version = "5.6.12"; rev = "php-5.6.12"; hash = "sha256-bycQQnKveyqZb4XkEA+sYnYw+9rznXvSY/Fs9SnIhTo="; }
{ version = "5.6.13"; rev = "php-5.6.13"; hash = "sha256-Y1iDfJy6tBuR7eWdvwZwrg+5JaE2nsvBpEonISQg+JM="; }
{ version = "5.6.14"; rev = "php-5.6.14"; hash = "sha256-NvKV8RZBwYOaXfAOaT9oX9E0xl6KHUbo7gq66GYrLrA="; }
{ version = "5.6.15"; rev = "php-5.6.15"; hash = "sha256-EaBkXE1LdJ4lbaHg1t+J3YhrWwa4PJFNlCZTZh29HDg="; }
{ version = "5.6.16"; rev = "php-5.6.16"; hash = "sha256-T+b0CWTBv6ugX8FEuiCiza0z4RaF9PEB6lpIuYu80q4="; }
{ version = "5.6.17"; rev = "php-5.6.17"; hash = "sha256-d7RfVqHmPnW7IrQs+4tDjsQIPFnOd0tNfBaFVEt63Ts="; }
{ version = "5.6.18"; rev = "php-5.6.18"; hash = "sha256-w81KKalWIwnTbisShAfW6qXH3eWQ0rGkZEVzg+UX9O0="; }
{ version = "5.6.19"; rev = "php-5.6.19"; hash = "sha256-KiSj+ElxaArApMcQUAZ95Pdu4jWqSgQfriG/ppl1wWg="; }
{ version = "5.6.20"; rev = "php-5.6.20"; hash = "sha256-Wse/fK7Hp5sYz0WOeG/RYJrS2ncSJLgLwVzG8Bsivx8="; }
{ version = "5.6.21"; rev = "php-5.6.21"; hash = "sha256-tO16tXS2if1tZJT96VSCbAbvyFxQXgF7jXdsfH9HlZA="; }
{ version = "5.6.22"; rev = "php-5.6.22"; hash = "sha256-kNqKgMxS+mmc8r+kxvpzfHct98krge9INGCqOx6fiMY="; }
{ version = "5.6.23"; rev = "php-5.6.23"; hash = "sha256-+s0oCJbSd+b3CEtgg55pPU22gxi/ySCF09wCUf01WMc="; }
{ version = "5.6.24"; rev = "php-5.6.24"; hash = "sha256-vyNhfsPtChJeyL3it7yp04BLL/TfjeGSiQyE3J+sOMY="; }
{ version = "5.6.25"; rev = "php-5.6.25"; hash = "sha256-WM5gMqztfz5CztSSvZgg5bPyo80+9xQpqpL9ez6xjd4="; }
{ version = "5.6.26"; rev = "php-5.6.26"; hash = "sha256-1HqrgIOkKEuQV3fhtF3Xc1rcU76Ceyn4lmhHUKyLYjY="; }
{ version = "5.6.27"; rev = "php-5.6.27"; hash = "sha256-O3fToGe26cx7soLU1bDm7rBiOoKLsEeSQeOwMERvKjw="; }
{ version = "5.6.28"; rev = "php-5.6.28"; hash = "sha256-xV6j9KrVoLZWMdAcRGiTD9mBrSCP/NJCrN9zG8tHVI8="; }
{ version = "5.6.29"; rev = "php-5.6.29"; hash = "sha256-SZuETIqnvgZMERaS5RoJO6lOVNLZq7AecOp2GDoYJbs="; }
{ version = "5.6.30"; rev = "php-5.6.30"; hash = "sha256-oQXCk/odv/EYtbDKdAKebEYfjHj0mzN6Kpi+njLCeQY="; }
{ version = "5.6.31"; rev = "php-5.6.31"; hash = "sha256-jzlxactl8FOfO8sEBg+Xdw1z4ZB0o3vSxYuY6/bssQ8="; }
{ version = "5.6.32"; rev = "php-5.6.32"; hash = "sha256-PuROel+kK1Y2UrPqDTSHvCNvzJ5ep0tYN3XKuGery1E="; }
{ version = "5.6.33"; rev = "php-5.6.33"; hash = "sha256-B/aWqXYdzYOeIEXJXDpNL/tSxUQXR3zKnTChSXW4Mcw="; }
{ version = "5.6.34"; rev = "php-5.6.34"; hash = "sha256-4Z9JnYzuSwsHgDYey2oAxBZUdyp1SAOrnqhmuNR88s0="; }
{ version = "5.6.35"; rev = "php-5.6.35"; hash = "sha256-7nin6coh2Oo5TQN8Ve//9HeknbrjHHdTxUcDb1vXO5I="; }
{ version = "5.6.36"; rev = "php-5.6.36"; hash = "sha256-YmoOP12KDmhqK5MPDdOgYB/j3LXkPdDow/q2MeZOFyo="; }
{ version = "5.6.37"; rev = "php-5.6.37"; hash = "sha256-iGrWPQXZTqPlQyJpGq3qDPHUvNtEULAv4wDltXB4iyM="; }
{ version = "5.6.38"; rev = "php-5.6.38"; hash = "sha256-1lsjG73WO+RDnvXO2WXP1j5imDQp29Tfz7SZgVk+vAM="; }
{ version = "5.6.39"; rev = "php-5.6.39"; hash = "sha256-s9sjRfUMAQsB/gQbTg9mxaoo6zJRNRNvFT4Y2gFYOtU="; }
{ version = "5.6.40"; rev = "php-5.6.40"; hash = "sha256-/9Al00YjVTqy9/2Psh0Mnm+fow3FZcoDode3YwI/ugA="; }
];
in
base.withExtensions (
{ all, ... }:

with all; (
[
bcmath
calendar
curl
ctype
dom
exif
fileinfo
filter
ftp
gd
gettext
gmp
iconv
intl
json
ldap
mbstring
mysqli
mysqlnd
opcache
openssl
pcntl
pdo
pdo_mysql
pdo_odbc
pdo_pgsql
pdo_sqlite
pgsql
posix
readline
session
simplexml
sockets
soap
sysvsem
sqlite3
tokenizer
xmlreader
xmlwriter
zip
zlib
]
++ prev.lib.optionals (!prev.stdenv.isDarwin) [
imap
builtins.foldl'
(acc: item: acc // {
"php${builtins.replaceStrings [ "." "-" ] [ "" "" ] item.version}" = (mkPhp { version = item.version; hash = item.hash; }).withExtensions
(
{ all, ... }: with all; [
bcmath
calendar
curl
ctype
dom
exif
fileinfo
filter
ftp
gd
gettext
gmp
iconv
intl
json
ldap
mbstring
mysqli
mysqlnd
opcache
openssl
pcntl
pdo
pdo_mysql
pdo_odbc
pdo_pgsql
pdo_sqlite
pgsql
posix
readline
session
simplexml
sockets
soap
sysvsem
sqlite3
tokenizer
xmlreader
xmlwriter
zip
zlib
] ++ prev.lib.optionals (!prev.stdenv.isDarwin) [
imap
]
);
})
{ }
(
archives ++ [
(
let last = (prev.lib.last archives); in {
version = prev.lib.versions.majorMinor last.version;
rev = last.rev;
hash = last.hash;
}
)
]
)
)
153 changes: 98 additions & 55 deletions pkgs/php/7.0.nix
Original file line number Diff line number Diff line change
@@ -1,60 +1,103 @@
{ prev, mkPhp }:
{ prev, mkPhp, ... }:

let
base = mkPhp {
version = "7.0.33";
hash = "sha256-STPqdCmKG6BGsCRv43cUFchN+4eDliAbVstTM6vobwc=";
};
archives = [
{ version = "7.0.0"; rev = "php-7.0.0"; hash = "sha256-qSpUMGgyFno598DsAFJPxvP32YXIBsqnYyVh0N3t/Oo="; }
{ version = "7.0.1"; rev = "php-7.0.1"; hash = "sha256-BM470doAE5ezQsIhmlCTvp7LvJfwIuHmoOwv7cPZPkI="; }
{ version = "7.0.2"; rev = "php-7.0.2"; hash = "sha256-mxt1+9nJLGsAA7I05VCWUDiCbRHqH0ML8nmWTanaIjY="; }
{ version = "7.0.3"; rev = "php-7.0.3"; hash = "sha256-gmgj11TwnHeSIqmb7PnFOk3HGdui13esp4B8bKaOb8Y="; }
{ version = "7.0.4"; rev = "php-7.0.4"; hash = "sha256-okbFA3CcGJuo4eIu0ssiq8J9pDqZf/GzMY4YG69Sncw="; }
{ version = "7.0.5"; rev = "php-7.0.5"; hash = "sha256-LAmvf+ZFN+p5XwmLm1QurUB++D983GWzeHEVzLu1Hek="; }
{ version = "7.0.6"; rev = "php-7.0.6"; hash = "sha256-FN3xkqmWXIWMHnQqYUVr4vNKTbh1VhcsDXbwjeljKbc="; }
{ version = "7.0.7"; rev = "php-7.0.7"; hash = "sha256-R08pJcR4K5QBbjr7sXsU/5zG9P229uIxs2o3i7GKPRo="; }
{ version = "7.0.8"; rev = "php-7.0.8"; hash = "sha256-Ztx7o4hJDgexMT/joGsfqCLhMQWF/in0kJmV8THifI0="; }
{ version = "7.0.9"; rev = "php-7.0.9"; hash = "sha256-LuaWi1h18vOHAMWKGJqthZpqC4X8M3qhAuwtw2UsO3s="; }
{ version = "7.0.10"; rev = "php-7.0.10"; hash = "sha256-gFW75ac2mGkxwMagi3ZdbXeCcex9LVbFChrSWewJ9t4="; }
{ version = "7.0.11"; rev = "php-7.0.11"; hash = "sha256-+ZtyncEUmFiESxivHowN5t0c391S4i+7TeKqeL+b9/E="; }
{ version = "7.0.12"; rev = "php-7.0.12"; hash = "sha256-OMRylP6PsjmwIw3GOpPD5ARPRyq5O13/i2X+tBA6aic="; }
{ version = "7.0.13"; rev = "php-7.0.13"; hash = "sha256-0JC7UjgSEX7AwI2PC1xfBhaqeimi7u4DdO/lOnz+iME="; }
{ version = "7.0.14"; rev = "php-7.0.14"; hash = "sha256-+8Q2mg1CtV/RznXrTz0XsBLadUpnVn2OMoj7+7dJBTQ="; }
{ version = "7.0.15"; rev = "php-7.0.15"; hash = "sha256-qMj5RzNWg/pt0bdEPtcPKkK8M+i2whXxOROM7onkfdk="; }
{ version = "7.0.16"; rev = "php-7.0.16"; hash = "sha256-g8X1dXXcD+ylY69SnW8dYBg7+cLBPpim2hMfvQo1l6s="; }
{ version = "7.0.17"; rev = "php-7.0.17"; hash = "sha256-ruUDkmuW2AdpL6w+D9ZOMll4j1E5gZqYMVJnnLbpHUs="; }
{ version = "7.0.18"; rev = "php-7.0.18"; hash = "sha256-sgzGPVBwMrOdi7FMtkeE5GCw5HmX6QqHBLcDvLsjP9E="; }
{ version = "7.0.19"; rev = "php-7.0.19"; hash = "sha256-DzrAr8Aq7CL2sWWQRdqSh0U+kwlDnQSZYivI6Up/fVk="; }
{ version = "7.0.20"; rev = "php-7.0.20"; hash = "sha256-zf3f4BzGFSGOMz40ocdhye+P31GZsnYXJkoCcF7af8M="; }
{ version = "7.0.21"; rev = "php-7.0.21"; hash = "sha256-K6Ezw5Leb4aqzO2MVOCt79HIHThArDI7mSa47T3GIx8="; }
{ version = "7.0.22"; rev = "php-7.0.22"; hash = "sha256-iOCyf2mr3RLs3oHwAMWp6kea9yGEVup/ZVfttDxt/d4="; }
{ version = "7.0.23"; rev = "php-7.0.23"; hash = "sha256-b+lM78fSxg7iwWSLl3vu11atnNCn5OqLuM9SHZNVoJw="; }
{ version = "7.0.24"; rev = "php-7.0.24"; hash = "sha256-m/kZgmlPF4ghwKrwNWOiBJSHPs5pM+Lu7P128yW9zxk="; }
{ version = "7.0.25"; rev = "php-7.0.25"; hash = "sha256-laJNltEmoZbhVQ45QYK0OmRgzdICbxp3vvAeQiQVzCU="; }
{ version = "7.0.26"; rev = "php-7.0.26"; hash = "sha256-JZDXIveyO2qQPFoAzwTn7nKN950Qrkc+OoG6QViFCac="; }
{ version = "7.0.27"; rev = "php-7.0.27"; hash = "sha256-mfolY7tMTBzen+vofP6XMkIn17S4go8uk25QcSc5QTE="; }
{ version = "7.0.28"; rev = "php-7.0.28"; hash = "sha256-rlSRtGE/NxDj0J5oi6PTDTrMERLHuWqHA2Y7ipUGPH8="; }
{ version = "7.0.29"; rev = "php-7.0.29"; hash = "sha256-mJFC1cX/ehFDElT5wZlSNbrWGjNkuZyWbhHgaqENP7w="; }
{ version = "7.0.30"; rev = "php-7.0.30"; hash = "sha256-IT84QAwjm4+rL29Z1vTUvUY9CnW9Tt9yPdTV/qiFC1A="; }
{ version = "7.0.31"; rev = "php-7.0.31"; hash = "sha256-fovXPs7W5nmhedOVcej+5sg+UchvQzOPZcLciMEQa5E="; }
{ version = "7.0.32"; rev = "php-7.0.32"; hash = "sha256-VujYz5wIF4r6hmNYmAX4O9sBY079mBMZdwOOJAZkkuE="; }
{ version = "7.0.33"; rev = "php-7.0.33"; hash = "sha256-STPqdCmKG6BGsCRv43cUFchN+4eDliAbVstTM6vobwc="; }
];
in
base.withExtensions (
{ all, ... }:

with all; (
[
bcmath
calendar
curl
ctype
dom
exif
fileinfo
filter
ftp
gd
gettext
gmp
iconv
intl
json
ldap
mbstring
mysqli
mysqlnd
opcache
openssl
pcntl
pdo
pdo_mysql
pdo_odbc
pdo_pgsql
pdo_sqlite
pgsql
posix
readline
session
simplexml
sockets
soap
sysvsem
sqlite3
tokenizer
xmlreader
xmlwriter
zip
zlib
]
++ prev.lib.optionals (!prev.stdenv.isDarwin) [
imap
builtins.foldl'
(acc: item: acc // {
"php${builtins.replaceStrings [ "." "-" ] [ "" "" ] item.version}" = (mkPhp { version = item.version; hash = item.hash; }).withExtensions
(
{ all, ... }: with all; [
bcmath
calendar
curl
ctype
dom
exif
fileinfo
filter
ftp
gd
gettext
gmp
iconv
intl
json
ldap
mbstring
mysqli
mysqlnd
opcache
openssl
pcntl
pdo
pdo_mysql
pdo_odbc
pdo_pgsql
pdo_sqlite
pgsql
posix
readline
session
simplexml
sockets
soap
sysvsem
sqlite3
tokenizer
xmlreader
xmlwriter
zip
zlib
] ++ prev.lib.optionals (!prev.stdenv.isDarwin) [
imap
]
);
})
{ }
(
archives ++ [
(
let last = (prev.lib.last archives); in {
version = prev.lib.versions.majorMinor last.version;
rev = last.rev;
hash = last.hash;
}
)
]
)
)
Loading

0 comments on commit 5393edd

Please sign in to comment.