Add the necessary preConfigure so that TeXstudio compile (find poppler-qt4.h)
This commit is contained in:
parent
89595fbcea
commit
ed3a809a3d
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, qt, popplerQt4, phonon }:
|
{ stdenv, fetchurl, qt, popplerQt4, zlib}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "texstudio";
|
pname = "texstudio";
|
||||||
@ -7,13 +7,16 @@ stdenv.mkDerivation rec {
|
|||||||
altname="Texstudio";
|
altname="Texstudio";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/texstudio/${altname} ${version}/${name}.tar.gz";
|
url = "mirror://sourceforge/texstudio/${name}.tar.gz";
|
||||||
sha1 = "0a5960689f2f9daef93391b96321ccc8c2e94c38";
|
sha256 = "167d78nfk265jjvl129nr70v8ladb2rav2qyhw7ngr6m54gak831";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ qt popplerQt4 phonon ];
|
buildInputs = [ qt popplerQt4 zlib ];
|
||||||
|
|
||||||
preConfigure = "qmake -r PREFIX=$out";
|
preConfigure = ''
|
||||||
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I$(echo ${popplerQt4}/include/poppler/qt4) "
|
||||||
|
qmake PREFIX=$out texstudio.pro
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Fork of TeXMaker, this editor is a full fledged IDE for LaTeX editing with completion, structure viewer, preview and support of any compilation chain.";
|
description = "Fork of TeXMaker, this editor is a full fledged IDE for LaTeX editing with completion, structure viewer, preview and support of any compilation chain.";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user