diff options
author | Vincenzo Mantova <1962985+xworld21@users.noreply.github.com> | 2024-03-16 19:17:11 +0000 |
---|---|---|
committer | Vincenzo Mantova <1962985+xworld21@users.noreply.github.com> | 2024-03-19 08:21:54 +0000 |
commit | 32d1ed5d245d1daa6e8acc916c23fac3801e6dd2 (patch) | |
tree | 30f1121daea029027e3b6b94df847cb23de9553b | |
parent | 7f51e79e66fcdab2e912598ff157f5473f22acf5 (diff) | |
download | nixlib-32d1ed5d245d1daa6e8acc916c23fac3801e6dd2.tar nixlib-32d1ed5d245d1daa6e8acc916c23fac3801e6dd2.tar.gz nixlib-32d1ed5d245d1daa6e8acc916c23fac3801e6dd2.tar.bz2 nixlib-32d1ed5d245d1daa6e8acc916c23fac3801e6dd2.tar.lz nixlib-32d1ed5d245d1daa6e8acc916c23fac3801e6dd2.tar.xz nixlib-32d1ed5d245d1daa6e8acc916c23fac3801e6dd2.tar.zst nixlib-32d1ed5d245d1daa6e8acc916c23fac3801e6dd2.zip |
asymptote: split outputs
-rw-r--r-- | pkgs/tools/graphics/asymptote/default.nix | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/pkgs/tools/graphics/asymptote/default.nix b/pkgs/tools/graphics/asymptote/default.nix index 30681663a7ce..494f3ad4c460 100644 --- a/pkgs/tools/graphics/asymptote/default.nix +++ b/pkgs/tools/graphics/asymptote/default.nix @@ -12,6 +12,8 @@ stdenv.mkDerivation rec { version = "2.87"; pname = "asymptote"; + outputs = [ "out" "man" "info" "doc" "tex" ]; + src = fetchFromGitHub { owner = "vectorgraphics"; repo = pname; @@ -47,27 +49,25 @@ stdenv.mkDerivation rec { dontWrapQtApps = true; + # Do not build $tex/ls-R which will be generated by texlive.combine preConfigure = '' HOME=$TMP + substituteInPlace Makefile.in \ + --replace-fail 'install: install-notexhash install-texhash' 'install: install-notexhash install-asy' + prependToVar configureFlags "--with-latex=$tex/tex/latex" "--with-context=$tex/tex/context/third" ''; - configureFlags = [ - "--with-latex=$out/share/texmf/tex/latex" - "--with-context=$out/share/texmf/tex/context/third" - ]; - env.NIX_CFLAGS_COMPILE = "-I${boehmgc.dev}/include/gc"; postInstall = '' rm "$out"/bin/xasy makeQtWrapper "$out"/share/asymptote/GUI/xasy.py "$out"/bin/xasy --prefix PATH : "$out"/bin - mv $out/share/info/asymptote/*.info $out/share/info/ - sed -i -e 's|(asymptote/asymptote)|(asymptote)|' $out/share/info/asymptote.info - rmdir $out/share/info/asymptote - rm -f $out/share/info/dir + mv "$info"/share/info/asymptote/*.info "$info"/share/info/ + sed -i -e 's|(asymptote/asymptote)|(asymptote)|' "$info"/share/info/asymptote.info + rmdir "$info"/share/info/asymptote + rm -f "$info"/share/info/dir - rm -rf $out/share/texmf install -Dt $out/share/emacs/site-lisp/${pname} $out/share/asymptote/*.el ''; |