2008-01-30 20:38:07 +01:00
|
|
|
# I haven't put much effort into this expressions .. so some optional depencencies may be missing - Marc
|
2010-04-19 21:41:38 +02:00
|
|
|
{ fetchurl, stdenv, texLive, python, makeWrapper
|
|
|
|
, libX11, qt
|
|
|
|
}:
|
|
|
|
|
2009-10-20 08:57:29 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2011-03-10 14:07:47 +01:00
|
|
|
version = "1.6.9";
|
2009-10-20 08:57:29 +02:00
|
|
|
name = "lyx-${version}";
|
2008-01-30 20:38:07 +01:00
|
|
|
|
2008-03-28 00:33:10 +01:00
|
|
|
src = fetchurl {
|
2009-10-20 08:57:29 +02:00
|
|
|
url = "ftp://ftp.lyx.org/pub/lyx/stable/1.6.x/${name}.tar.bz2";
|
2011-03-10 14:07:47 +01:00
|
|
|
sha256 = "c5b3602c58db385be5c52ba958f52239c5fd090320ec99d79b7eb861c1597709";
|
2008-01-30 20:38:07 +01:00
|
|
|
};
|
|
|
|
|
2010-04-19 21:41:38 +02:00
|
|
|
buildInputs = [texLive qt python makeWrapper ];
|
|
|
|
|
|
|
|
# don't ask me why it can't find libX11.so.6
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/lyx \
|
|
|
|
--prefix LD_LIBRARY_PATH ":" ${libX11}/lib
|
|
|
|
'';
|
2008-01-30 20:38:07 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "WYSIWYM frontend for LaTeX, DocBook, etc.";
|
|
|
|
homepage = "http://www.lyx.org";
|
|
|
|
license = "GPL2";
|
|
|
|
};
|
|
|
|
}
|