summaryrefslogtreecommitdiffstats
path: root/tv/5pkgs/simple/cr.nix
blob: 048d7795375455adf0b9074a13e4d615fb73ab9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ pkgs }:

pkgs.writeDashBin "cr" ''
  set -efu
  if test -n "''${XDG_RUNTIME_DIR-}"; then
    cache_dir=$XDG_RUNTIME_DIR/chromium-disk-cache
  else
    cache_dir=/tmp/chromium-disk-cache_$LOGNAME
  fi
  export LC_TIME=de_DE.utf8
  exec ${pkgs.chromium}/bin/chromium \
      --ssl-version-min=tls1 \
      --disk-cache-dir="$cache_dir" \
      --disk-cache-size=50000000 \
      "$@"
''