3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/editors/emacs-modes/org2blog/default.nix

35 lines
992 B
Nix
Raw Normal View History

2014-06-05 14:42:55 +01:00
{ stdenv, fetchgit, emacs, org, xmlRpc, metaweblog }:
2012-09-09 18:32:27 +01:00
stdenv.mkDerivation rec {
2014-06-05 14:42:55 +01:00
name = "org2blog-0.8.1";
2012-09-09 18:32:27 +01:00
src = fetchgit {
url = https://github.com/punchagan/org2blog.git;
2014-06-05 14:42:55 +01:00
rev = "5f573ff3e4007c16517a5fe28c4f5d8dde3f8a77";
sha256 = "e83c08ceece92bb507be70046db4a7fa87a4af34ad3f84a727e0bd6a1dd99a33";
2012-09-09 18:32:27 +01:00
};
buildInputs = [ emacs ];
2014-06-05 14:42:55 +01:00
propagatedUserEnvPkgs = [ org xmlRpc metaweblog ];
2012-09-09 18:32:27 +01:00
buildPhase = ''
2014-06-05 14:42:55 +01: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 18:32:27 +01: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 18:32:27 +01:00
homepage = https://github.com/punchagan/org2blog;
license = stdenv.lib.licenses.gpl3Plus;
2012-09-09 18:32:27 +01:00
platforms = stdenv.lib.platforms.all;
};
}