summary refs log tree commit diff
path: root/pkgs/tools/graphics/asymptote
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2016-02-02 17:18:41 +0300
committerNikolay Amiantov <ab@fmap.me>2016-02-02 17:34:57 +0300
commit3ab8f9720124b4b305f6552d3c746a80c58d0dec (patch)
tree4e1806cdee8dcde49547238723d7233929c562a2 /pkgs/tools/graphics/asymptote
parent4222b8c20c7b012c1a341e7ffdeb142d1bb92385 (diff)
downloadnixpkgs-3ab8f9720124b4b305f6552d3c746a80c58d0dec.tar
nixpkgs-3ab8f9720124b4b305f6552d3c746a80c58d0dec.tar.gz
nixpkgs-3ab8f9720124b4b305f6552d3c746a80c58d0dec.tar.bz2
nixpkgs-3ab8f9720124b4b305f6552d3c746a80c58d0dec.tar.lz
nixpkgs-3ab8f9720124b4b305f6552d3c746a80c58d0dec.tar.xz
nixpkgs-3ab8f9720124b4b305f6552d3c746a80c58d0dec.tar.zst
nixpkgs-3ab8f9720124b4b305f6552d3c746a80c58d0dec.zip
asymptote: enforce no bundled libraries, install tex files, offscreen rendering support
Diffstat (limited to 'pkgs/tools/graphics/asymptote')
-rw-r--r--pkgs/tools/graphics/asymptote/default.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/tools/graphics/asymptote/default.nix b/pkgs/tools/graphics/asymptote/default.nix
index e4242f8efab..9199d6a038f 100644
--- a/pkgs/tools/graphics/asymptote/default.nix
+++ b/pkgs/tools/graphics/asymptote/default.nix
@@ -1,6 +1,6 @@
 {stdenv, fetchurl
   , freeglut, ghostscriptX, imagemagick, fftw 
-  , boehmgc, mesa, ncurses, readline, gsl, libsigsegv
+  , boehmgc, mesa_glu, mesa_noglu, ncurses, readline, gsl, libsigsegv
   , python, zlib, perl, texLive, texinfo, xz
 }:
 let
@@ -15,7 +15,7 @@ let
   };
   buildInputs = [
    freeglut ghostscriptX imagemagick fftw 
-   boehmgc mesa ncurses readline gsl libsigsegv
+   boehmgc mesa_glu mesa_noglu mesa_noglu.osmesa ncurses readline gsl libsigsegv
    python zlib perl texLive texinfo xz
   ];
 in
@@ -33,9 +33,12 @@ stdenv.mkDerivation {
     sed -e 's@epswrite@eps2write@g' -i runlabel.in
     xz -d < ${texinfo.src} | tar --wildcards -x texinfo-'*'/doc/texinfo.tex
     cp texinfo-*/doc/texinfo.tex doc/
-    export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${boehmgc}/include/gc"
+    rm *.tar.gz
+    configureFlags="$configureFlags --with-latex=$out/share/texmf/tex/latex --with-context=$out/share/texmf/tex/context/third"
   '';
 
+  NIX_CFLAGS_COMPILE = [ "-I${boehmgc}/include/gc" ];
+
   postInstall = ''
     mv -v "$out/share/info/asymptote/"*.info $out/share/info/
     sed -i -e 's|(asymptote/asymptote)|(asymptote)|' $out/share/info/asymptote.info