diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2014-08-14 20:22:55 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2014-08-14 20:23:21 +0200 |
commit | c659c6ca804617250bc14869c7e0d3f50bb451dc (patch) | |
tree | f1c4b370f417a5332e8f4a31c8a2f71cab55be97 /pkgs/applications | |
parent | 08b8eaae1cba30ed9e55c70b52d2c80c6dcaa95f (diff) | |
download | nixpkgs-c659c6ca804617250bc14869c7e0d3f50bb451dc.tar nixpkgs-c659c6ca804617250bc14869c7e0d3f50bb451dc.tar.gz nixpkgs-c659c6ca804617250bc14869c7e0d3f50bb451dc.tar.bz2 nixpkgs-c659c6ca804617250bc14869c7e0d3f50bb451dc.tar.lz nixpkgs-c659c6ca804617250bc14869c7e0d3f50bb451dc.tar.xz nixpkgs-c659c6ca804617250bc14869c7e0d3f50bb451dc.tar.zst nixpkgs-c659c6ca804617250bc14869c7e0d3f50bb451dc.zip |
lyx: major update and some fixes
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/misc/lyx/default.nix | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/pkgs/applications/misc/lyx/default.nix b/pkgs/applications/misc/lyx/default.nix index 36b2f84aab5..da7be68be54 100644 --- a/pkgs/applications/misc/lyx/default.nix +++ b/pkgs/applications/misc/lyx/default.nix @@ -1,14 +1,14 @@ -{ fetchurl, stdenv, texLive, python, makeWrapper, pkgconfig -, libX11, qt4, enchant #, mythes, boost +{ fetchurl, stdenv, pkgconfig, python, file, bc +, qt4, hunspell, makeWrapper #, mythes, boost }: stdenv.mkDerivation rec { - version = "2.0.7"; + version = "2.1.1"; name = "lyx-${version}"; src = fetchurl { - url = "ftp://ftp.lyx.org/pub/lyx/stable/2.0.x/${name}.tar.xz"; - sha256 = "0qp8xqmlafib4hispjgl1friln0w3s05mi20sjfzaxnl6jkvv5q5"; + url = "ftp://ftp.lyx.org/pub/lyx/stable/2.1.x/${name}.tar.xz"; + sha256 = "1fir1dzzy7c92jf3a3psnd10c6widslk0852xk4svpl6phcg4nya"; }; configureFlags = [ @@ -18,18 +18,29 @@ stdenv.mkDerivation rec { #"--without-included-mythes" # such a small library isn't worth a separate package ]; + # LaTeX is used from $PATH, as people often want to have it with extra pkgs buildInputs = [ - texLive qt4 python makeWrapper pkgconfig - enchant # mythes boost + pkgconfig qt4 python file/*for libmagic*/ bc + hunspell makeWrapper # enchant ]; + enableParallelBuilding = true; doCheck = true; - meta = { + # python is run during runtime to do various tasks + postFixup = '' + sed '1s:/usr/bin/python:${python}/bin/python:' + + wrapProgram "$out/bin/lyx" \ + --prefix PATH : '${python}/bin' + ''; + + meta = with stdenv.lib; { description = "WYSIWYM frontend for LaTeX, DocBook"; homepage = "http://www.lyx.org"; - license = stdenv.lib.licenses.gpl2; - maintainers = [ stdenv.lib.maintainers.vcunat ]; - platforms = stdenv.lib.platforms.linux; + license = licenses.gpl2Plus; + maintainers = [ maintainers.vcunat ]; + platforms = platforms.linux; }; } + |