Replace pygmentize with bat
[?]
Apr 24, 2023, 10:26 PM
DRXLMZ7LJKINZQQVD43QB4P2CR2MMRVYL7BKGUD6R6IJR4OX5HEACDependencies
- [2]
EWJKDT6OUse static weather data instead of poking wttr.in - [3]
HFOVEKSXUse streamLayeredImage - [4]
FDN24OK3Remove workarounds for open nixpkgs PRs - [5]
BH5XPS7CAdd 07-vm-integration test - [6]
TEQJC3HXAdd 03-nix-container - [7]
X3HISPCSAdd 05-static-container - [8]
ZV5WPO25Extend 02 - [9]
VMUKZQZRWork on 02-nix-build - [10]
QICPGJ2DMake simple.c dump more concise - [11]
VX6OFBL3Tweak 05 - [12]
EGQ4SEV5Add demo for 04 - [13]
ZFMPQAFVFix and extend cross compilation with static builds - [14]
VXZ5QMIEFix CI - [15]
VUARRVTIClean up strings - [16]
YWKMJUZSAdd 06-windows-wine - [17]
W2G433QURefactor libdemo and flakeref for nix run commands - [18]
J2SBQJQUTweaks - [19]
3GPSC2KXAdd compatibility checks for fancy parts of the demos - [20]
WK2OO4YYTweak 04 - [21]
4A2DSMIMClean up nix-container-demo-helper.sh - [22]
C372IC6MClean up flake outputs
Change contents
- edit in src/simple.c at line 38
// HERE WE CHANGE THE URL WE FETCH - we don't actually want to hammer wttr.in, so use static data instead - edit in src/simple.c at line 39
// HERE WE CHANGE THE URL WE FETCH COMPARED TO THE ORIGINAL FILE// We don't actually want to hammer wttr.in, so use static data instead - replacement in bash/nix-container-demo-helper.sh at line 10
pygmentize() {bat() { - replacement in bash/nix-container-demo-helper.sh at line 12
COLORTERM="" TERM="" nix run "${NIXPKGS_FLAKEREF}#python3Packages.pygments" -- "$@"COLORTERM="" TERM="" nix run "${NIXPKGS_FLAKEREF}#bat" -- --pager none "$@" - replacement in 07-vm-integration-test/demo.sh at line 27
x pygmentize "${dir}/flake.nix"x bat "${dir}/flake.nix" - replacement in 06-windows-wine/demo.sh at line 19
x pygmentize "${dir}/flake.nix"x bat "${dir}/flake.nix" - replacement in 05-static-container/demo.sh at line 11
x pygmentize "${dir}/flake.nix"x bat "${dir}/flake.nix" - replacement in 05-static-container/demo.sh at line 17
x pygmentize -l bash ./resultx bat -l bash ./result - replacement in 05-static-container/demo-inside-nix-develop.sh at line 20
x "podman inspect localhost/wttr-delft:nix | pygmentize -l json"x "podman inspect localhost/wttr-delft:nix | bat -l json" - replacement in 04-cmake-and-cross/demo.sh at line 16
x pygmentize "${dir}/../src/CMakeLists.txt"x bat "${dir}/../src/CMakeLists.txt" - replacement in 04-cmake-and-cross/demo.sh at line 20
x pygmentize "${dir}/wttr-delft.nix"x bat "${dir}/wttr-delft.nix" - replacement in 04-cmake-and-cross/demo.sh at line 31
x pygmentize "${dir}/flake.nix"x bat "${dir}/flake.nix" - replacement in 03-nix-container/demo.sh at line 11
x pygmentize "${dir}/flake.nix"x bat "${dir}/flake.nix" - replacement in 02-nix-build/demo.sh at line 14
x tail -n -29 "${dir}/../src/simple.c" \| pygmentizex bat --line-range 28: "${dir}/../src/simple.c" - replacement in 02-nix-build/demo.sh at line 28
x pygmentize "${dir}/flake.nix"x bat "${dir}/flake.nix" - replacement in 02-nix-build/demo.sh at line 31
x pygmentize -l json "${dir}/flake.lock"x bat -l json "${dir}/flake.lock"