From 7fb7fafe0ff47e1edc225fe2001327c1f70f9481 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 15 Oct 2015 14:35:32 +0200 Subject: [PATCH] emacs-markdown-mode: add version 2.0-82-gfe30ef7 --- .../emacs-modes/markdown-mode/default.nix | 28 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 7 +++-- 2 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 pkgs/applications/editors/emacs-modes/markdown-mode/default.nix diff --git a/pkgs/applications/editors/emacs-modes/markdown-mode/default.nix b/pkgs/applications/editors/emacs-modes/markdown-mode/default.nix new file mode 100644 index 000000000000..032a2417c208 --- /dev/null +++ b/pkgs/applications/editors/emacs-modes/markdown-mode/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchFromGitHub, emacs }: + +let + version = "2.0-82-gfe30ef7"; +in +stdenv.mkDerivation { + name = "markdown-mode-${version}"; + + src = fetchFromGitHub { + owner = "defunkt"; + repo = "markdown-mode"; + rev = "v${version}"; + sha256 = "14a6r05j0g2ppq2q4kd14qyxwr6yv5jwndavbwzkmp6qhmm9k8nz"; + }; + + buildInputs = [ emacs ]; + + buildPhase = '' + emacs -L . --batch -f batch-byte-compile *.el + ''; + + installPhase = '' + install -d $out/share/emacs/site-lisp + install *.el *.elc $out/share/emacs/site-lisp + ''; + + meta.license = stdenv.lib.license.gpl3Plus; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 361061ba0a0c..befdae14113f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10453,7 +10453,7 @@ let coreclr = callPackage ../development/compilers/coreclr { }; corefonts = callPackage ../data/fonts/corefonts { }; - + culmus = callPackage ../data/fonts/culmus { }; wrapFonts = paths : (callPackage ../data/fonts/fontWrap { inherit paths; }); @@ -11244,6 +11244,8 @@ let magit = callPackage ../applications/editors/emacs-modes/magit { }; + markdownMode = callPackage ../applications/editors/emacs-modes/markdown-mode { }; + maudeMode = callPackage ../applications/editors/emacs-modes/maude { }; metaweblog = callPackage ../applications/editors/emacs-modes/metaweblog { }; @@ -12392,7 +12394,7 @@ let pencil = callPackage ../applications/graphics/pencil { }; - perseus = callPackage ../applications/science/math/perseus {}; + perseus = callPackage ../applications/science/math/perseus {}; petrifoo = callPackage ../applications/audio/petrifoo { inherit (gnome) libgnomecanvas; @@ -15207,4 +15209,3 @@ tweakAlias = _n: alias: with lib; else alias; in lib.mapAttrs tweakAlias aliases // self; in pkgs -