fix(flake.nix): Fix shellscript #221
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fixes the following problem by editing
simula-unwrappedin/flake.nix.The problem
An error occurred on 19edac4, when I run Simula on my device. The reason is that there are no directories for
$SIMULA_LOG_DIR,$SIMULA_DATA_DIRand$SIMULA_CONFIG_DIR.The log when I run Simula on my device:
$ ./result/bin/simula XDG_CACHE_HOME: /home/haruki/.cache XDG_DATA_HOME: /home/haruki/.local/share XDG_CONFIG_HOME: /home/haruki/.config SIMULA_NIX_DIR: /nix/store/w58nxwwsn97469n480pcw0v4wz833wf2-simula-0.0.0 SIMULA_LOG_DIR: /home/haruki/.cache/Simula SIMULA_DATA_DIR: /home/haruki/.local/share/Simula SIMULA_CONFIG_DIR: /home/haruki/.config/Simula cp: cannot stat '/nix/store/w58nxwwsn97469n480pcw0v4wz833wf2-simula-0.0.0/config/HUD.config': No such file or directoryHow to resolve it
xdgAndSimulaEnvVarsinflake.nixto create below directories.$SIMULA_LOG_DIR$SIMULA_DATA_DIR$SIMULA_CONFIG_DIRcopySimulaConfigFilesinflake.nixto copy correct config/asset files