···362362 if match "[a-zA-Z_][a-zA-Z0-9_'-]*" s != null
363363 then s else escapeNixString s;
364364365365+ /* Escapes a string such that it is safe to include verbatim in an XML
366366+ document.
367367+368368+ Type: string -> string
369369+370370+ Example:
371371+ escapeXML ''"test" 'test' < & >''
372372+ => "\\[\\^a-z]\\*"
373373+ */
374374+ escapeXML = builtins.replaceStrings
375375+ ["\"" "'" "<" ">" "&"]
376376+ [""" "'" "<" ">" "&"];
377377+365378 # Obsolete - use replaceStrings instead.
366379 replaceChars = builtins.replaceStrings or (
367380 del: new: s:
···11+{ runCommand, vega-lite }:
22+33+let
44+ inherit (vega-lite) packageName version;
55+in
66+77+runCommand "${packageName}-tests" { meta.timeout = 60; }
88+ ''
99+ # get version of installed program and compare with package version
1010+ claimed_version="$(${vega-lite}/bin/vl2vg --version)"
1111+ if [[ "$claimed_version" != "${version}" ]]; then
1212+ echo "Error: program version does not match package version ($claimed_version != ${version})"
1313+ exit 1
1414+ fi
1515+1616+ # run dummy commands
1717+ ${vega-lite}/bin/vl2vg --help > /dev/null
1818+ ${vega-lite}/bin/vl2svg --help > /dev/null
1919+ ${vega-lite}/bin/vl2png --help > /dev/null
2020+ ${vega-lite}/bin/vl2pdf --help > /dev/null
2121+2222+ # needed for Nix to register the command as successful
2323+ touch $out
2424+ ''
···1717 * parameter given to the kernel. So reserving memory from low to high
1818- * satisfies this constraint again. Reserving 1M at 0x02600000-0x02700000 for
1919- * the DTB leaves rest of the free RAM to the initrd starting at 0x02700000.
2020-+ * satisfies this constraint again. Reserving 1M at 0x02e00000-0x02f00000 for
2121-+ * the DTB leaves rest of the free RAM to the initrd starting at 0x02f00000.
2020++ * satisfies this constraint again. Reserving 1M at 0x03700000-0x03800000 for
2121++ * the DTB leaves rest of the free RAM to the initrd starting at 0x03800000.
2222 * Even with the smallest possible CPU-GPU memory split of the CPU getting
2323- * only 64M, the remaining 25M starting at 0x02700000 should allow quite
2424- * large initrds before they start colliding with U-Boot.
2525-+ * only 64M, the remaining 17M starting at 0x02f00000 should allow reasonably
2525++ * only 64M, the remaining 9M starting at 0x03800000 should allow reasonably
2626+ * sized initrds before they start colliding with U-Boot.
2727 */
2828 #define ENV_MEM_LAYOUT_SETTINGS \
···3333- "pxefile_addr_r=0x02500000\0" \
3434- "fdt_addr_r=0x02600000\0" \
3535- "ramdisk_addr_r=0x02700000\0"
3636-+ "scriptaddr=0x02c00000\0" \
3737-+ "pxefile_addr_r=0x02d00000\0" \
3838-+ "fdt_addr_r=0x02e00000\0" \
3939-+ "ramdisk_addr_r=0x02f00000\0"
3636++ "scriptaddr=0x03500000\0" \
3737++ "pxefile_addr_r=0x03600000\0" \
3838++ "fdt_addr_r=0x03700000\0" \
3939++ "ramdisk_addr_r=0x03800000\0"
40404141 #if CONFIG_IS_ENABLED(CMD_MMC)
4242 #define BOOT_TARGET_MMC(func) \