stockholm/tv/5pkgs/simple/cr.nix

17 lines
387 B
Nix
Raw Normal View History

2022-03-05 09:03:50 +00:00
{ 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 \
"$@"
''