this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

interpol

+5 -8
+5 -8
nix/docker-image.nix
··· 136 136 # At runtime the Nix store is read-only so `manage.py compilemessages` 137 137 # would fail. We use msgfmt directly to avoid needing a full Django 138 138 # environment during the image build. 139 - find $out/app -name '*.po' -print0 | while IFS= read -r -d '' po; do 140 - mo="''${po%.po}.mo" 141 - msgfmt -o "$mo" "$po" 2>/dev/null || true 142 - done 143 - 144 - # Also compile .po files inside vendored/venv packages (e.g. django-filters) 145 - find $out/app/.venv -name '*.po' -print0 | while IFS= read -r -d '' po; do 146 - mo="''${po%.po}.mo" 139 + # NOTE: We use sed to derive the .mo path instead of bash parameter 140 + # expansion (${var%.po}) because Nix's indented string syntax 141 + # conflicts with the ''${ escape sequence. 142 + find $out/app -name '*.po' | while read -r po; do 143 + mo="$(echo "$po" | sed 's/\.po$/.mo/')" 147 144 msgfmt -o "$mo" "$po" 2>/dev/null || true 148 145 done 149 146 '';