nixpkgs/pkgs/applications/editors/emacs-modes/org2blog/default.nix

35 lines
988 B
Nix
Raw Normal View History

2014-06-05 13:42:55 +00:00
{ stdenv, fetchgit, emacs, org, xmlRpc, metaweblog }:
2012-09-09 17:32:27 +00:00
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
2014-06-05 13:42:55 +00:00
name = "org2blog-0.8.1";
2012-09-09 17:32:27 +00:00
src = fetchgit {
url = https://github.com/punchagan/org2blog.git;
2014-06-05 13:42:55 +00:00
rev = "5f573ff3e4007c16517a5fe28c4f5d8dde3f8a77";
sha256 = "e83c08ceece92bb507be70046db4a7fa87a4af34ad3f84a727e0bd6a1dd99a33";
2012-09-09 17:32:27 +00:00
};
buildInputs = [ emacs ];
2014-06-05 13:42:55 +00:00
propagatedUserEnvPkgs = [ org xmlRpc metaweblog ];
2012-09-09 17:32:27 +00:00
buildPhase = ''
2014-06-05 13:42:55 +00:00
emacs -L . -L ${org}/share/emacs/site-lisp/org \
-L ${xmlRpc}/share/emacs/site-lisp \
-L ${metaweblog}/share/emacs/site-lisp \
--batch -f batch-byte-compile *.el
2012-09-09 17:32:27 +00:00
'';
installPhase = ''
install -d $out/share/emacs/site-lisp
install *.el* $out/share/emacs/site-lisp
'';
meta = {
description = "Publish directly from Emacs org-mode to WordPress blogs";
2012-09-09 17:32:27 +00:00
homepage = https://github.com/punchagan/org2blog;
license = stdenv.lib.licenses.gpl3Plus;
2012-09-09 17:32:27 +00:00
platforms = stdenv.lib.platforms.all;
};
}