movim: missing extensions, allow passing PHP cfg
This commit is contained in:
parent
3030f185ba
commit
f91e98652b
1 changed files with 8 additions and 5 deletions
|
@ -1,6 +1,7 @@
|
||||||
{ lib
|
{ lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, php
|
, php
|
||||||
|
, phpCfg ? null
|
||||||
, withPgsql ? true # “strongly recommended” according to docs
|
, withPgsql ? true # “strongly recommended” according to docs
|
||||||
, withMysql ? false
|
, withMysql ? false
|
||||||
}:
|
}:
|
||||||
|
@ -16,14 +17,16 @@ php.buildComposerProject (finalAttrs: {
|
||||||
hash = "sha256-9MBe2IRYxvUuCc5m7ajvIlBU7YVm4A3RABlOOIjpKoM=";
|
hash = "sha256-9MBe2IRYxvUuCc5m7ajvIlBU7YVm4A3RABlOOIjpKoM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
php = php.buildEnv {
|
php = php.buildEnv ({
|
||||||
extensions = ({ all, enabled }:
|
extensions = ({ all, enabled }:
|
||||||
enabled
|
enabled
|
||||||
++ (with all; [ curl dom gd imagick mbstring ])
|
++ (with all; [ curl dom gd imagick mbstring pdo simplexml ])
|
||||||
++ lib.optional withPgsql all.pgsql
|
++ lib.optionals withPgsql (with all; [ pdo_pgsql pgsql ])
|
||||||
++ lib.optional withMysql all.mysqli
|
++ lib.optionals withMysql (with all; [ mysqli mysqlnd pdo_mysql ])
|
||||||
);
|
);
|
||||||
};
|
} // lib.optionalAttrs (phpCfg != null) {
|
||||||
|
extraConfig = phpCfg;
|
||||||
|
});
|
||||||
|
|
||||||
# no listed license
|
# no listed license
|
||||||
# pinned commonmark
|
# pinned commonmark
|
||||||
|
|
Loading…
Reference in a new issue