Temp workaround for symlinks in unsupported filesystems on android
ideally symlinks nor hashed files would end up on the device. For now
this will at least make the non hashed assets appear on android with
filesystems that do not support symlinks
commit188a697341766aed769a549aac9c75166d5460d2
authorLuigy Leon <luichi.19@gmail.com>
dateFri 5 Oct 2018, 12:21 (8 years ago)
parentdb1376c
lib/executable-config/default.nix+1−2
@@ -8,8 +8,7 @@
88let injectConfig = config: assets: nixpkgs.runCommand "inject-config" {} ''
99 set -x
1010 mkdir -p $out
11− mkdir -p $out/static
12− cp -a "${assets}"/* $out/static
11+ cp --no-preserve=mode -Lr "${assets}" $out/static
1312 chmod +w "$out"
1413 if ! mkdir $out/config; then
1514 2>&1 echo config directory already exists or could not be created