Reduce dependency of libdemo on Nix

[?]
Mar 21, 2023, 2:16 PM
PO6SMI7OCLG7OFPD73N3U4O5HQX6N2TB3MJ27SSQ5JREHFKYGMWAC

Dependencies

Change contents

  • replacement in bash/libdemo.sh at line 192
    [2.2387][2.2387:2584]()
    # Hack around missing mainProgram attribute in pygments
    COLORTERM="" TERM="" "$(nix build nixpkgs#python3Packages.pygments --no-link --print-out-paths)/bin/pygmentize" "$@"
    [2.2387]
    [2.2584]
    if type nix >/dev/null; then
    # Hack around missing mainProgram attribute in pygments
    COLORTERM="" TERM="" "$(nix build nixpkgs#python3Packages.pygments --no-link --print-out-paths)/bin/pygmentize" "$@"
    elif type pygmentize >/dev/null; then
    pygmentize "$@"
    else
    echo "pygmentize command not found"
    return 1
    fi