3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/lyx/default.nix
Marc Weber 6ef4de2259 Lyx update
svn path=/nixpkgs/trunk/; revision=21170
2010-04-19 19:41:38 +00:00

29 lines
759 B
Nix

# I haven't put much effort into this expressions .. so some optional depencencies may be missing - Marc
{ fetchurl, stdenv, texLive, python, makeWrapper
, libX11, qt
}:
stdenv.mkDerivation rec {
version = "1.6.5";
name = "lyx-${version}";
src = fetchurl {
url = "ftp://ftp.lyx.org/pub/lyx/stable/1.6.x/${name}.tar.bz2";
sha256 = "0xxj37l4ghaa2ij5nfxlg90rfw0znipigjlh271mfmwjw9ykcw1n";
};
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
'';
meta = {
description = "WYSIWYM frontend for LaTeX, DocBook, etc.";
homepage = "http://www.lyx.org";
license = "GPL2";
};
}