{ mariadb-client , python3 , nodejs , writeShellApplication , frappe-app , erpnext-app , frappe-erpnext-assets , erpnext-nginx-conf }: let penv = python3.buildEnv.override { extraLibs = [ python3.pkgs.frappe python3.pkgs.erpnext python3.pkgs.bench ]; }; in writeShellApplication { name = "run-erpnext"; runtimeInputs = [mariadb-client nodejs penv]; text = '' export PYTHON_PATH=${penv}/${python3.sitePackages} tmp=/tmp/erpnext mkdir -p $tmp/apps $tmp/sites $tmp/config/pids $tmp/logs/nginx $tmp/env/bin ln -s ${frappe-app}/share/apps/frappe $tmp/apps/frappe ln -s ${erpnext-app}/share/apps/erpnext $tmp/apps/erpnext ln -s ${frappe-erpnext-assets}/share/sites/assets $tmp/sites/assets ln -s ${penv} $tmp/env ln -s ${erpnext-nginx-conf} $tmp/nginx-erpnext.conf cat > $tmp/sites/apps.txt <$tmp/sites/common_site_config.json <