summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs-modes/htmlize
diff options
context:
space:
mode:
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.";
+  };
+}