Skip to content

Commit d51a453

Browse files
committed
Allow setting plugin package used in flake
We can use env vars to control use of the GitHub or WordPress.org plugin build.
1 parent e130521 commit d51a453

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

dev/flake.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,11 @@
8383
else
8484
builtins.getEnv name);
8585
phpPackage = getEnv "PHP_PACKAGE" "php";
86+
staticDeployPackage = getEnv "STATIC_DEPLOY_PACKAGE" "pluginWpOrg";
8687
wordpressPackage = getEnv "WORDPRESS_PACKAGE" "default";
8788
staticDeployLib = inputs.static-deploy.lib.${system};
8889
staticDeployPkgs = inputs.static-deploy.packages.${system};
89-
staticDeploy = staticDeployPkgs.pluginWpOrg;
90+
staticDeploy = staticDeployPkgs.${staticDeployPackage};
9091
# Note that /tmp/xd has to be created to receive traces
9192
phpOptions = ''
9293
opcache.interned_strings_buffer = 16

0 commit comments

Comments
 (0)