on master help sign in
Fix the location of assets on mobile
ff0153eLuigy Leon
lib/executable-config/default.nix+3−1
@@ -7,7 +7,9 @@
7}:
7}:
8let injectConfig = config: assets: nixpkgs.runCommand "inject-config" {} ''
8let injectConfig = config: assets: nixpkgs.runCommand "inject-config" {} ''
9 set -x
9 set -x
10+ mkdir -p $out
11+ mkdir -p $out/static
10− cp -a "${assets}" $out
12+ cp -a "${assets}"/* $out/static
11 chmod +w "$out"
13 chmod +w "$out"
12 if ! mkdir $out/config; then
14 if ! mkdir $out/config; then
13 2>&1 echo config directory already exists or could not be created
15 2>&1 echo config directory already exists or could not be created