2010-09-06 09:58:13 +02:00
|
|
|
{ fetchurl, stdenv, emacs, texinfo, which }:
|
2010-07-22 10:59:12 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2012-01-21 19:29:06 +01:00
|
|
|
name = "org-7.8.03";
|
2010-07-22 10:59:12 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://orgmode.org/${name}.tar.gz";
|
2012-01-21 19:29:06 +01:00
|
|
|
sha256 = "49357cca7d892e70cd2dfcc0b5d96d9fd164ef5a1f251ace3865ecb27dc1e958";
|
2010-07-22 10:59:12 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ emacs texinfo ];
|
|
|
|
|
2010-09-06 09:58:13 +02:00
|
|
|
patchPhase =
|
|
|
|
'' sed -i "lisp/org-clock.el" -e's|"which"|"${which}/bin/which"|g'
|
|
|
|
'';
|
|
|
|
|
2010-07-22 10:59:12 +02:00
|
|
|
configurePhase =
|
|
|
|
'' sed -i Makefile \
|
|
|
|
-e "s|^prefix=.*$|prefix=$out|g"
|
|
|
|
'';
|
|
|
|
|
2011-04-12 17:09:30 +02:00
|
|
|
#XXX: fails because of missing UTILITIES/manfull.pl, currently not
|
|
|
|
# included in the release tarball, but git.
|
|
|
|
|
|
|
|
#postBuild =
|
|
|
|
# '' make doc
|
|
|
|
# '';
|
|
|
|
|
2010-07-22 10:59:12 +02:00
|
|
|
installPhase =
|
|
|
|
'' make install install-info
|
|
|
|
|
|
|
|
ensureDir "$out/share/doc/${name}"
|
2011-04-12 17:09:30 +02:00
|
|
|
cp -v doc/org*.{html,pdf,txt} "$out/share/doc/${name}"
|
|
|
|
|
|
|
|
ensureDir "$out/share/org"
|
|
|
|
cp -R contrib "$out/share/org/contrib"
|
2010-07-22 10:59:12 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
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+";
|
|
|
|
|
2012-01-21 19:29:06 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ ludo chaoflow ];
|
|
|
|
platforms = stdenv.lib.platforms.gnu;
|
2010-07-22 10:59:12 +02:00
|
|
|
};
|
|
|
|
}
|