From ca591d30e4ad4c4c2dc931a7c453887629e6bf61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Tue, 24 Sep 2013 13:28:00 +0200 Subject: [PATCH] asciidoc: fixup for matplotlib filter (remove .old/) The matplotlib filter comes with an .old/ directory which contains a chart-filter.conf file that asciidoc loads. I highly doubt that is intended. --- pkgs/tools/typesetting/asciidoc/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/tools/typesetting/asciidoc/default.nix b/pkgs/tools/typesetting/asciidoc/default.nix index 3da51055043..fdbcf81090c 100644 --- a/pkgs/tools/typesetting/asciidoc/default.nix +++ b/pkgs/tools/typesetting/asciidoc/default.nix @@ -125,6 +125,8 @@ stdenv.mkDerivation rec { echo "Extracting mpl (matplotlib) filter" mkdir -p "$out/etc/asciidoc/filters/mpl" tar xvf "${matplotlibFilterSrc}" -C "$out/etc/asciidoc/filters/mpl" --strip-components=1 + # Stop asciidoc from loading mpl/.old/chart-filter.conf + rm -rf "$out/etc/asciidoc/filters/mpl/.old" # Add matplotlib and numpy to sys.path matplotlib_path="$(toPythonPath ${matplotlib})" numpy_path="$(toPythonPath ${numpy})"