From 14760d869b34db20bd5e31a24eaafa03ae0b30f5 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 24 Aug 2010 08:25:51 +0000 Subject: [PATCH] Add Nix expression for Emacs mode htmlize. svn path=/nixpkgs/trunk/; revision=23382 --- .../editors/emacs-modes/htmlize/builder.sh | 4 ++++ .../editors/emacs-modes/htmlize/default.nix | 16 ++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 22 insertions(+) create mode 100644 pkgs/applications/editors/emacs-modes/htmlize/builder.sh create mode 100644 pkgs/applications/editors/emacs-modes/htmlize/default.nix 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."; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e04c5363f3ec..2250844d7269 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5387,6 +5387,8 @@ let hol_light_mode = callPackage ../applications/editors/emacs-modes/hol_light { }; + htmlize = callPackage ../applications/editors/emacs-modes/htmlize { }; + magit = callPackage ../applications/editors/emacs-modes/magit { }; maudeMode = callPackage ../applications/editors/emacs-modes/maude { };