diff options
author | Eric Litak <elitak@gmail.com> | 2020-09-23 21:58:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-23 21:58:52 -0700 |
commit | 028e05d8a43e0420474afa8f878195b9e17acaf0 (patch) | |
tree | 7c2dac10b33769384f707822c663fa2c089225fb /pkgs/applications/video/vcs/fonts.patch | |
parent | d6d1c121e128c648abd393b98cb9629f161ad716 (diff) | |
download | nixlib-028e05d8a43e0420474afa8f878195b9e17acaf0.tar nixlib-028e05d8a43e0420474afa8f878195b9e17acaf0.tar.gz nixlib-028e05d8a43e0420474afa8f878195b9e17acaf0.tar.bz2 nixlib-028e05d8a43e0420474afa8f878195b9e17acaf0.tar.lz nixlib-028e05d8a43e0420474afa8f878195b9e17acaf0.tar.xz nixlib-028e05d8a43e0420474afa8f878195b9e17acaf0.tar.zst nixlib-028e05d8a43e0420474afa8f878195b9e17acaf0.zip |
vcs: init at 1.13.4
* vcs: init at 1.13.4 * Update pkgs/applications/video/vcs/default.nix Co-Authored-By: symphorien <symphorien@users.noreply.github.com> * Update pkgs/applications/video/vcs/default.nix Co-authored-by: Ryan Mulligan <ryan@ryantm.com> Co-authored-by: symphorien <symphorien@users.noreply.github.com> Co-authored-by: Ryan Mulligan <ryan@ryantm.com>
Diffstat (limited to 'pkgs/applications/video/vcs/fonts.patch')
-rw-r--r-- | pkgs/applications/video/vcs/fonts.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/applications/video/vcs/fonts.patch b/pkgs/applications/video/vcs/fonts.patch new file mode 100644 index 000000000000..3df0359f8b26 --- /dev/null +++ b/pkgs/applications/video/vcs/fonts.patch @@ -0,0 +1,23 @@ +--- a/vcs 2020-04-04 14:37:53.531095977 -0700 ++++ b/vcs 2020-04-04 14:40:46.459407878 -0700 +@@ -3669,18 +3669,8 @@ + [[ ( -z $USR_FONT_TITLE ) && ( $FONT_TITLE != 'DejaVu-Sans-Book' ) ]] && return + [[ ( -z $USR_FONT_TSTAMPS ) && ( $FONT_TSTAMPS != 'DejaVu-Sans-Book' ) ]] && return + [[ ( -z $USR_FONT_SIGN ) && ( $FONT_SIGN != 'DejaVu-Sans-Book' ) ]] && return +- # Try to locate DejaVu Sans +- local dvs='' +- if [[ -d /usr/local/share/fonts ]]; then +- dvs=$(find /usr/local/share/fonts/ -type f -iname 'dejavusans.ttf') +- fi +- if [[ ( -z $dvs ) && ( -d /usr/share/fonts ) ]]; then +- dvs=$(find /usr/share/fonts/ -type f -iname 'dejavusans.ttf') +- fi +- if [[ -z $dvs ]]; then +- warn "Unable to locate DejaVu Sans font. Falling back to helvetica." +- dvs=helvetica +- fi ++ # Use DejaVu Sans, by default ++ local dvs='@dejavu_fonts@/share/fonts/truetype/DejaVuSans.ttf' + [[ -z $USR_FONT_HEADING ]] && FONT_HEADING="$dvs" + [[ -z $USR_FONT_TITLE ]] && FONT_TITLE="$dvs" + [[ -z $USR_FONT_TSTAMPS ]] && FONT_TSTAMPS="$dvs" |