summary refs log tree commit diff
path: root/pkgs/tools/graphics
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2011-12-24 18:03:51 +0000
committerPeter Simons <simons@cryp.to>2011-12-24 18:03:51 +0000
commita4a5a35f2d30e158cfd05ad6e859cdb222dfbf0a (patch)
treea5ae61272e4b900e6ba306e9bff32472aaec3702 /pkgs/tools/graphics
parentf13c4dba3d4119dfaf278100631454c15d04a2d5 (diff)
downloadnixlib-a4a5a35f2d30e158cfd05ad6e859cdb222dfbf0a.tar
nixlib-a4a5a35f2d30e158cfd05ad6e859cdb222dfbf0a.tar.gz
nixlib-a4a5a35f2d30e158cfd05ad6e859cdb222dfbf0a.tar.bz2
nixlib-a4a5a35f2d30e158cfd05ad6e859cdb222dfbf0a.tar.lz
nixlib-a4a5a35f2d30e158cfd05ad6e859cdb222dfbf0a.tar.xz
nixlib-a4a5a35f2d30e158cfd05ad6e859cdb222dfbf0a.tar.zst
nixlib-a4a5a35f2d30e158cfd05ad6e859cdb222dfbf0a.zip
asymptote: added fixInfoDir hook to move the generated info files into the correct location
svn path=/nixpkgs/trunk/; revision=31059
Diffstat (limited to 'pkgs/tools/graphics')
-rw-r--r--pkgs/tools/graphics/asymptote/default.nix13
1 files changed, 10 insertions, 3 deletions
diff --git a/pkgs/tools/graphics/asymptote/default.nix b/pkgs/tools/graphics/asymptote/default.nix
index 303fc0868745..e49b5a45cab1 100644
--- a/pkgs/tools/graphics/asymptote/default.nix
+++ b/pkgs/tools/graphics/asymptote/default.nix
@@ -23,9 +23,10 @@ rec {
   configureFlags = [];
 
   /* doConfigure should be removed if not needed */
-  phaseNames = ["setVars" "doUnpack" "fixPaths" "extractTexinfoTex" 
-    "doConfigure" "dumpRealVars" "doMakeInstall" "fixPathsResult"];
-      
+  phaseNames = ["setVars" "doUnpack" "fixPaths" "extractTexinfoTex"
+    "doConfigure" "dumpRealVars" "doMakeInstall" "fixPathsResult"
+    "fixInfoDir"];
+
   setVars = a.noDepEntry ''
     export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${a.boehmgc}/include/gc"
     export HOME="$PWD"
@@ -38,6 +39,12 @@ rec {
   fixPaths = a.doPatchShebangs ''.'';
   fixPathsResult = a.doPatchShebangs ''$out/bin'';
 
+  fixInfoDir = a.noDepEntry ''
+    mv -v "$out/share/info/asymptote/"*.info $out/share/info/
+    rmdir $out/share/info/asymptote
+    rm $out/share/info/dir
+  '';
+
   extractTexinfoTex = a.fullDepEntry ''
     lzma -d < ${a.texinfo.src} | tar --wildcards -x texinfo-'*'/doc/texinfo.tex
     cp texinfo-*/doc/texinfo.tex doc/