diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/graphics/gnuplot/set-gdfontpath-from-fontconfig.sh')
-rw-r--r-- | nixpkgs/pkgs/tools/graphics/gnuplot/set-gdfontpath-from-fontconfig.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/graphics/gnuplot/set-gdfontpath-from-fontconfig.sh b/nixpkgs/pkgs/tools/graphics/gnuplot/set-gdfontpath-from-fontconfig.sh new file mode 100644 index 000000000000..92ad2e97b5b4 --- /dev/null +++ b/nixpkgs/pkgs/tools/graphics/gnuplot/set-gdfontpath-from-fontconfig.sh @@ -0,0 +1,4 @@ +p=( $(fc-list : file | sed "s@/[^/]*: @@" | sort -u) ) +IFS=: +export GDFONTPATH="${GDFONTPATH}${GDFONTPATH:+:}${p[*]}" +unset IFS p |