summary refs log tree commit diff
path: root/pkgs/tools/graphics/asymptote
diff options
context:
space:
mode:
authorYury G. Kudryashov <urkud@urkud.name>2018-04-29 22:46:16 -0400
committerYury G. Kudryashov <urkud@urkud.name>2018-04-29 23:36:43 -0400
commitd207e043d3315330e5011be63783a335f645c9d0 (patch)
tree8324025327d8ff3e8837f5fb596e75a12e79f886 /pkgs/tools/graphics/asymptote
parentcf194a93115ac1354f0e49f49c1f44aac74b3d6d (diff)
downloadnixpkgs-d207e043d3315330e5011be63783a335f645c9d0.tar
nixpkgs-d207e043d3315330e5011be63783a335f645c9d0.tar.gz
nixpkgs-d207e043d3315330e5011be63783a335f645c9d0.tar.bz2
nixpkgs-d207e043d3315330e5011be63783a335f645c9d0.tar.lz
nixpkgs-d207e043d3315330e5011be63783a335f645c9d0.tar.xz
nixpkgs-d207e043d3315330e5011be63783a335f645c9d0.tar.zst
nixpkgs-d207e043d3315330e5011be63783a335f645c9d0.zip
asymptote: move Emacs Lisp files to $out/share/emacs/site-lisp/asymptote/
This way, emacs can find the 'asymptote' mode.
Diffstat (limited to 'pkgs/tools/graphics/asymptote')
-rw-r--r--pkgs/tools/graphics/asymptote/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/tools/graphics/asymptote/default.nix b/pkgs/tools/graphics/asymptote/default.nix
index 7337cd227a2..01ddd6ba7fc 100644
--- a/pkgs/tools/graphics/asymptote/default.nix
+++ b/pkgs/tools/graphics/asymptote/default.nix
@@ -51,7 +51,9 @@ stdenv.mkDerivation {
     rmdir $out/share/info/asymptote
     rm $out/share/info/dir
 
-    rm -rf "$out"/share/texmf
+    rm -rfv "$out"/share/texmf
+    mkdir -pv "$out"/share/emacs/site-lisp/${s.name}
+    mv -v "$out"/share/asymptote/*.el "$out"/share/emacs/site-lisp/${s.name}
   '';
 
   enableParallelBuilding = true;