mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
emacs: add package "org2blog"
This commit is contained in:
parent
7bbda346ba
commit
da87b2c9bf
31
pkgs/applications/editors/emacs-modes/org2blog/default.nix
Normal file
31
pkgs/applications/editors/emacs-modes/org2blog/default.nix
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
{ stdenv, fetchgit, emacs, xmlRpc }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "org2blog-0.5";
|
||||||
|
|
||||||
|
src = fetchgit {
|
||||||
|
url = https://github.com/punchagan/org2blog.git;
|
||||||
|
rev = "338abe30e9bc89684f8384f8deaf826b63844da6";
|
||||||
|
sha256 = "46ab31e90d0d54071c126b7d5599a3e82062baa79ddf26b988bcb88d306d6827";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ emacs ];
|
||||||
|
propagatedUserEnvPkgs = [ xmlRpc ];
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
emacs -L . -L ${xmlRpc}/share/emacs/site-lisp --batch -f batch-byte-compile *.el
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
install -d $out/share/emacs/site-lisp
|
||||||
|
install *.el* $out/share/emacs/site-lisp
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "A tool to publish directly from Emacs’ org-mode to WordPress blogs.";
|
||||||
|
homepage = https://github.com/punchagan/org2blog;
|
||||||
|
license = "GPLv3+";
|
||||||
|
|
||||||
|
platforms = stdenv.lib.platforms.all;
|
||||||
|
};
|
||||||
|
}
|
@ -6784,6 +6784,8 @@ let
|
|||||||
# we want it to have higher precedence.
|
# we want it to have higher precedence.
|
||||||
org = hiPrio (callPackage ../applications/editors/emacs-modes/org { });
|
org = hiPrio (callPackage ../applications/editors/emacs-modes/org { });
|
||||||
|
|
||||||
|
org2blog = callPackage ../applications/editors/emacs-modes/org2blog { };
|
||||||
|
|
||||||
pcache = callPackage ../applications/editors/emacs-modes/pcache { };
|
pcache = callPackage ../applications/editors/emacs-modes/pcache { };
|
||||||
|
|
||||||
phpMode = callPackage ../applications/editors/emacs-modes/php { };
|
phpMode = callPackage ../applications/editors/emacs-modes/php { };
|
||||||
|
Loading…
Reference in New Issue
Block a user