summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs-modes/htmlize
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2010-08-24 08:25:51 +0000
committerPeter Simons <simons@cryp.to>2010-08-24 08:25:51 +0000
commit14760d869b34db20bd5e31a24eaafa03ae0b30f5 (patch)
tree43034b2517bc6b496128268252e60ca9a9ba3ed6 /pkgs/applications/editors/emacs-modes/htmlize
parented19b4faf0313d5f5aa8d04ff05fec0a73b92d50 (diff)
downloadnixlib-14760d869b34db20bd5e31a24eaafa03ae0b30f5.tar
nixlib-14760d869b34db20bd5e31a24eaafa03ae0b30f5.tar.gz
nixlib-14760d869b34db20bd5e31a24eaafa03ae0b30f5.tar.bz2
nixlib-14760d869b34db20bd5e31a24eaafa03ae0b30f5.tar.lz
nixlib-14760d869b34db20bd5e31a24eaafa03ae0b30f5.tar.xz
nixlib-14760d869b34db20bd5e31a24eaafa03ae0b30f5.tar.zst
nixlib-14760d869b34db20bd5e31a24eaafa03ae0b30f5.zip
Add Nix expression for Emacs mode htmlize.
svn path=/nixpkgs/trunk/; revision=23382
Diffstat (limited to 'pkgs/applications/editors/emacs-modes/htmlize')
-rw-r--r--pkgs/applications/editors/emacs-modes/htmlize/builder.sh4
-rw-r--r--pkgs/applications/editors/emacs-modes/htmlize/default.nix16
2 files changed, 20 insertions, 0 deletions
diff --git a/pkgs/applications/editors/emacs-modes/htmlize/builder.sh b/pkgs/applications/editors/emacs-modes/htmlize/builder.sh
new file mode 100644
index 000000000000..125211f46e38
--- /dev/null
+++ b/pkgs/applications/editors/emacs-modes/htmlize/builder.sh
@@ -0,0 +1,4 @@
+source $stdenv/setup
+
+mkdir -p $out/emacs/site-lisp
+cp $src $out/emacs/site-lisp/htmlize.el
diff --git a/pkgs/applications/editors/emacs-modes/htmlize/default.nix b/pkgs/applications/editors/emacs-modes/htmlize/default.nix
new file mode 100644
index 000000000000..e749dfa44864
--- /dev/null
+++ b/pkgs/applications/editors/emacs-modes/htmlize/default.nix
@@ -0,0 +1,16 @@
+{ stdenv, fetchurl }:
+
+stdenv.mkDerivation {
+  name = "htmlize-1.37";
+
+  builder = ./builder.sh;
+
+  src = fetchurl {
+    url = http://fly.srk.fer.hr/~hniksic/emacs/htmlize.el;
+    sha256 = "17sbhf4r6jh4610x8qb2y0y3hww7w33vfsjqg4vrz99pr29xffry";
+  };
+
+  meta = {
+    description = "Convert buffer text and decorations to HTML.";
+  };
+}