nixpkgs/pkgs/applications/editors/emacs-modes/org/default.nix
Florian Friesdorf ce249b627b org: include more pdf doc, yet failing html-doc and contrib/
contrib is added as profile/share/org/contrib, better ideas
welcome. profile/share/doc/org-7.5/contrib could be an option but then
one needs to adjust personal emacs config to point to the new
contrib/lisp dir with each upgrade.

svn path=/nixpkgs/trunk/; revision=26805
2011-04-12 15:09:30 +00:00

56 lines
1.4 KiB
Nix

{ fetchurl, stdenv, emacs, texinfo, which }:
stdenv.mkDerivation rec {
name = "org-7.5";
src = fetchurl {
url = "http://orgmode.org/${name}.tar.gz";
sha256 = "978822bc4c5f9f67450fbaa8572f1d4217406b7e28551278c9f23f7e9515cd4b";
};
buildInputs = [ emacs texinfo ];
patchPhase =
'' sed -i "lisp/org-clock.el" -e's|"which"|"${which}/bin/which"|g'
'';
configurePhase =
'' sed -i Makefile \
-e "s|^prefix=.*$|prefix=$out|g"
'';
#XXX: fails because of missing UTILITIES/manfull.pl, currently not
# included in the release tarball, but git.
#postBuild =
# '' make doc
# '';
installPhase =
'' make install install-info
ensureDir "$out/share/doc/${name}"
cp -v doc/org*.{html,pdf,txt} "$out/share/doc/${name}"
ensureDir "$out/share/org"
cp -R contrib "$out/share/org/contrib"
'';
meta = {
description = "Org-Mode, an Emacs mode for notes, project planning, and authoring";
longDescription =
'' Org-mode is for keeping notes, maintaining ToDo lists, doing project
planning, and authoring with a fast and effective plain-text system.
This package contains a version of Org-mode typically more recent
than that found in GNU Emacs.
'';
license = "GPLv3+";
maintainers = [ stdenv.lib.maintainers.ludo stdenv.lib.maintainers.chaoflow ];
platforms = stdenv.lib.platforms.gnu; # arbitrary choice
};
}