1
0
Fork 0
mirror of https://github.com/NixOS/nix.dev.git synced 2024-10-18 00:06:26 -04:00
Official documentation for getting things done with Nix.
Find a file
Brian McGillion b58466875c
tutorial: Fix the markers to build and concatenate (#816)
The current code has a number of issues.

1. realising the code results in:

``
markers=$(geocode 'New York') size=640x640 scale=2 zoom=7 ...
        ^-------------------^ SC2046 (warning): Quote this to prevent
        word splitting.
``

2.
``
$(geocode ${lib.escapeShellArg marker.location})"
``

Assumes that geocode has been added to the PATH so replace with

``
${config.scripts.geocode}/bin/geocode
``

as per previous examples.

3.
``
  in "markers=${ lib.concatStringsSep "\\|" attributes}";
in builtins.map paramForMarker config.map.markers;
``

The ordering of this actually creates multiple ``[markers =]``
parameters and does not use the concatenation string to join the
attributes together (in effect there is only 1 attribute per call) to
map, and 1 new ``marker`` created.

Signed-off-by: Brian McGillion <bmg.avoin@gmail.com>
2023-11-28 21:30:28 +01:00
.github build-and-deploy: Disable github deployments (#803) 2023-11-21 20:34:14 +01:00
maintainers Update documentation team meeting link (#801) 2023-11-18 18:14:24 +01:00
nix use "source" for niv source names 2023-11-07 03:06:11 +01:00
source tutorial: Fix the markers to build and concatenate (#816) 2023-11-28 21:30:28 +01:00
vale File sets tutorial (#802) 2023-11-23 17:14:46 +01:00
.editorconfig editorconfig: init 2023-10-06 10:50:04 +02:00
.envrc unignore .envrc 2023-11-13 13:28:42 +01:00
.gitignore unignore .envrc 2023-11-13 13:28:42 +01:00
.imgbotconfig housekeeping: enable devenv, automatic updates, CLA+license 2020-06-12 17:30:22 +00:00
.vale.ini Enable custom vocabulary 2023-11-13 13:45:49 +01:00
_redirects add missing redirect 2023-11-27 07:49:03 +01:00
CONTRIBUTING.md remove the vision outline 2023-11-02 20:39:29 +01:00
default.nix vale: add to devShell 2023-11-13 13:28:42 +01:00
LICENSE.md LICENSE: CC BY-NC -> CC BY-SA for better compatibility 2020-06-16 15:38:01 +02:00
Makefile add SOURCE_DATE_EPOCH to Makefile to fix copyright year (#800) 2023-11-15 05:16:27 +01:00
overlay.nix add python dependency sphinx-sitemap 2023-10-10 19:52:26 +01:00
README.md move devmode helper into flake 2023-10-18 15:33:06 +02:00
run_code_block_tests.sh Proof-of-Concept for testing code samples 2022-04-07 10:16:17 +01:00
runtime.txt pin python for cloudflare 2022-06-27 10:26:49 -05:00
shell.nix remove flake.nix 2023-11-07 03:04:28 +01:00

CI

nix.dev

Official documentation for getting things done with Nix.

Contributing

Run nix-shell --run devmode and open a browser at http://localhost:5500.

As you make changes your browser should auto-reload within a few seconds.

For contents and style see contribution guide.

Content is written in MyST, a superset of CommonMark. For its syntax, see the MyST docs.