1 { lib, stdenv, fetchFromGitHub, fetchurl, fetchpatch
2 , autoreconfHook, bison, glm, flex
3 , freeglut, ghostscriptX, imagemagick, fftw
4 , boehmgc, libGLU, libGL, mesa, ncurses, readline, gsl, libsigsegv
11 stdenv.mkDerivation rec {
15 src = fetchFromGitHub {
16 owner = "vectorgraphics";
19 hash = "sha256-GyW9OEolV97WtrSdIxp4MCP3JIyA1c/DQSqg8jLC0WQ=";
31 ghostscriptX imagemagick fftw
32 boehmgc ncurses readline gsl libsigsegv
35 ] ++ (with python3Packages; [
40 propagatedBuildInputs = [
42 ] ++ lib.optionals stdenv.isLinux [
43 freeglut libGLU libGL mesa.osmesa
44 ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
53 "--with-latex=$out/share/texmf/tex/latex"
54 "--with-context=$out/share/texmf/tex/context/third"
57 env.NIX_CFLAGS_COMPILE = "-I${boehmgc.dev}/include/gc";
60 mv $out/share/info/asymptote/*.info $out/share/info/
61 sed -i -e 's|(asymptote/asymptote)|(asymptote)|' $out/share/info/asymptote.info
62 rmdir $out/share/info/asymptote
63 rm -f $out/share/info/dir
65 rm -rf $out/share/texmf
66 install -Dt $out/share/emacs/site-lisp/${pname} $out/share/asymptote/*.el
69 enableParallelBuilding = true;
70 # Missing install depends:
71 # ...-coreutils-9.1/bin/install: cannot stat 'asy-keywords.el': No such file or directory
72 # make: *** [Makefile:272: install-asy] Error 1
73 enableParallelInstalling = false;
76 description = "A tool for programming graphics intended to replace Metapost";
77 license = licenses.gpl3Plus;
78 maintainers = [ maintainers.raskin ];
79 platforms = platforms.linux ++ platforms.darwin;