2012-09-04 00:40:05 +02:00
|
|
|
{ fetchurl, stdenv, emacs, texinfo, which, texLive }:
|
2010-07-22 10:59:12 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-10-01 15:52:31 +02:00
|
|
|
name = "org-8.2.1";
|
2013-10-02 13:54:23 +02:00
|
|
|
|
2010-07-22 10:59:12 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://orgmode.org/${name}.tar.gz";
|
2013-10-01 15:52:31 +02:00
|
|
|
sha256 = "625e2b6786158bcf6c43194075f7638ab8048c68a60025289a051c407e467823";
|
2010-07-22 10:59:12 +02:00
|
|
|
};
|
|
|
|
|
2012-09-04 00:40:05 +02:00
|
|
|
buildInputs = [ emacs ];
|
2012-12-28 19:20:09 +01:00
|
|
|
nativeBuildInputs = [ texinfo texLive ];
|
2010-09-06 09:58:13 +02:00
|
|
|
|
2010-07-22 10:59:12 +02:00
|
|
|
configurePhase =
|
2012-09-04 00:40:05 +02:00
|
|
|
'' sed -i mk/default.mk \
|
2013-10-02 13:54:23 +02:00
|
|
|
-e "s|^prefix\t=.*$|prefix=$out/share|g"
|
2010-07-22 10:59:12 +02:00
|
|
|
'';
|
|
|
|
|
2012-09-04 00:40:05 +02:00
|
|
|
postBuild =
|
|
|
|
'' make doc
|
|
|
|
'';
|
2011-04-12 17:09:30 +02:00
|
|
|
|
2010-07-22 10:59:12 +02:00
|
|
|
installPhase =
|
|
|
|
'' make install install-info
|
|
|
|
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p "$out/share/doc/${name}"
|
2011-04-12 17:09:30 +02:00
|
|
|
cp -v doc/org*.{html,pdf,txt} "$out/share/doc/${name}"
|
|
|
|
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p "$out/share/org"
|
2011-04-12 17:09:30 +02:00
|
|
|
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+";
|
|
|
|
|
2013-08-16 23:44:33 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ chaoflow ];
|
2012-01-21 19:29:06 +01:00
|
|
|
platforms = stdenv.lib.platforms.gnu;
|
2010-07-22 10:59:12 +02:00
|
|
|
};
|
|
|
|
}
|