summary refs log tree commit diff
path: root/pkgs/tools/typesetting
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2016-10-18 17:03:59 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2016-10-18 23:16:07 +0200
commitb08c00f67d675a9679ddcde6df8c9aeaa457de97 (patch)
treec5675c3c280c3d5647ea8038f1df86ce94b3c017 /pkgs/tools/typesetting
parent1d31efa6957a4b99dcb0983a75bdf7b3b414eafa (diff)
downloadnixlib-b08c00f67d675a9679ddcde6df8c9aeaa457de97.tar
nixlib-b08c00f67d675a9679ddcde6df8c9aeaa457de97.tar.gz
nixlib-b08c00f67d675a9679ddcde6df8c9aeaa457de97.tar.bz2
nixlib-b08c00f67d675a9679ddcde6df8c9aeaa457de97.tar.lz
nixlib-b08c00f67d675a9679ddcde6df8c9aeaa457de97.tar.xz
nixlib-b08c00f67d675a9679ddcde6df8c9aeaa457de97.tar.zst
nixlib-b08c00f67d675a9679ddcde6df8c9aeaa457de97.zip
dblatex: use python2
Diffstat (limited to 'pkgs/tools/typesetting')
-rw-r--r--pkgs/tools/typesetting/tex/dblatex/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/tools/typesetting/tex/dblatex/default.nix b/pkgs/tools/typesetting/tex/dblatex/default.nix
index ce65a587ddf2..7ffccde2c035 100644
--- a/pkgs/tools/typesetting/tex/dblatex/default.nix
+++ b/pkgs/tools/typesetting/tex/dblatex/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, python, libxslt, texlive
+{ stdenv, fetchurl, python2, libxslt, texlive
 , enableAllFeatures ? false, imagemagick ? null, transfig ? null, inkscape ? null, fontconfig ? null, ghostscript ? null
 
 , tex ? texlive.combine { # satisfy all packages that ./configure mentions
@@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
     sha256 = "0bkjgrn03dy5c7438s429wnv6z5ynxkr4pbhp2z49kynskgkzkjr";
   };
 
-  buildInputs = [ python libxslt tex ]
+  buildInputs = [ python2 libxslt tex ]
     ++ stdenv.lib.optionals enableAllFeatures [ imagemagick transfig ];
 
   # TODO: dblatex tries to execute texindy command, but nixpkgs doesn't have
@@ -58,7 +58,7 @@ stdenv.mkDerivation rec {
   dontBuild = true;
 
   installPhase = ''
-    python ./setup.py install --prefix="$out" --use-python-path --verbose
+    ${python2.interpreter} ./setup.py install --prefix="$out" --use-python-path --verbose
   '';
 
   passthru = { inherit tex; };