Added the crew file

This commit is contained in:
Mysaa Java
2026-06-07 04:16:17 +02:00
parent 538231dbd4
commit 5836157c57
8 changed files with 1839 additions and 1 deletions
+12 -1
View File
@@ -38,6 +38,7 @@
echo "Checking Database Migration"
${pkgs.flyway}/bin/flyway "-url=$MISAEL_DATABASE" -user=misael "-password=$MISAEL_PASSWORD" -locations="filesystem:${misael}/resources/main/db/migration/" -schemas=misael migrate
export THECREW_IMAGES_FOLDER=${thecrew-images}
echo "Launching misael"
${jdk}/bin/java -jar ${misael}/misael.jar --spring.datasource.url=$MISAEL_DATABASE --spring.datasource.password=$MISAEL_PASSWORD "$@"
'';
@@ -45,10 +46,18 @@
mkdir -p .postgres
${pkgs.podman}/bin/podman run -e POSTGRES_USER=misael -e POSTGRES_PASSWORD=misael-dev -e POSTGRES_DB=misael --volume ./.postgres:/var/lib/postgresql -p 127.0.0.1:5432:5432 postgres:18.4 & > .postgres/postgres.log &
'';
thecrew-images = pkgs.runCommand "thecrew-images" {} ''
mkdir $out
cd $out
export PATH=${pkgs.inkscape}/bin:$PATH
${lib.getExe pkgs.python3} ${./src/main/resources/static/images/thecrew-make.py}\
${./src/main/resources/static/images/thecrew.svg}\
${./src/main/resources/static/images/thecrew-modifiers.svg}
'';
in {
packages.${system} = {
default = self.packages.${system}.misael;
misael = misael;
inherit thecrew-images misael;
};
apps.${system} = {
@@ -79,6 +88,8 @@
shellHook = ''
echo "Starting Gradle daemon ..."
gradle
export THECREW_IMAGES_FOLDER=${thecrew-images}
export THECREW_MISSIONS_FILE=$PWD/thecrew-missions.json
echo "Gradle daemon started."
'';
};