2022-04-14 15:46:49 +02:00
|
|
|
{
|
2022-08-18 15:28:53 +02:00
|
|
|
pkgs ? import <nixpkgs> { }
|
2022-04-14 15:46:49 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2022-08-18 15:28:53 +02:00
|
|
|
|
|
|
|
projectFrontendReinstall = pkgs.writeShellApplication {
|
|
|
|
name = "project-frontend-reinstall";
|
|
|
|
text = ''
|
|
|
|
rm -rf node_modules/
|
|
|
|
yarn install
|
|
|
|
'';
|
2022-04-14 15:46:49 +02:00
|
|
|
};
|
2022-08-18 15:28:53 +02:00
|
|
|
|
|
|
|
projectFrontendCompile = pkgs.writeShellApplication {
|
|
|
|
name = "project-frontend-compile";
|
|
|
|
text = ''
|
|
|
|
yarn run build
|
|
|
|
notify-send "done compiling frontend"
|
|
|
|
'';
|
2022-04-14 15:46:49 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
in pkgs.mkShell {
|
|
|
|
name = "TYPO3";
|
|
|
|
buildInputs = [
|
2022-08-18 15:28:53 +02:00
|
|
|
projectFrontendReinstall
|
|
|
|
projectFrontendCompile
|
2022-04-14 15:46:49 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
shellHook = ''
|
|
|
|
export PROJECT_ROOT="$(pwd)"
|
2022-04-28 12:55:16 +02:00
|
|
|
export PATH="/home/daniels/Applications/node-v10.24.1-linux-x64/bin/:$PATH"
|
2022-04-14 15:46:49 +02:00
|
|
|
|
|
|
|
export PS1="\033[0;32m\]\W >\[\033[0m\] "
|
|
|
|
|
|
|
|
export typo3DatabaseName=testing
|
|
|
|
export typo3DatabaseHost=localhost
|
|
|
|
export typo3DatabaseUsername=testing
|
|
|
|
export typo3DatabasePassword=testing
|
|
|
|
|
|
|
|
export TYPO3_CONTEXT=Development/dsiepmann
|
|
|
|
export TYPO3_DATABASE=emoto2_reuter
|
|
|
|
export TYPO3_BASE=https://reuter.emoto2.localhost/
|
2022-05-16 11:47:04 +02:00
|
|
|
export BASE_URL=https://reuter.emoto2.localhost/
|
2022-04-14 15:46:49 +02:00
|
|
|
export TYPO3_ADDITIONAL_CONFIGURATION=/home/daniels/.local/share/typo3-configuration/AdditionalConfiguration.inc.php
|
|
|
|
'';
|
|
|
|
}
|