summary refs log tree commit diff
path: root/pkgs/applications/editors/texstudio
diff options
context:
space:
mode:
authorChaddaï Fouché <chaddai.fouche@gmail.com>2014-04-23 11:58:54 +0200
committerChaddaï Fouché <chaddai.fouche@gmail.com>2014-04-29 16:48:22 +0200
commited3a809a3dab44585c5c78a2a6f78776427fcacc (patch)
treed1aed1bcd08ba21922f40a9a12fd09b5d0048122 /pkgs/applications/editors/texstudio
parent89595fbcea79af385fea634db504827bb0121508 (diff)
downloadnixpkgs-ed3a809a3dab44585c5c78a2a6f78776427fcacc.tar
nixpkgs-ed3a809a3dab44585c5c78a2a6f78776427fcacc.tar.gz
nixpkgs-ed3a809a3dab44585c5c78a2a6f78776427fcacc.tar.bz2
nixpkgs-ed3a809a3dab44585c5c78a2a6f78776427fcacc.tar.lz
nixpkgs-ed3a809a3dab44585c5c78a2a6f78776427fcacc.tar.xz
nixpkgs-ed3a809a3dab44585c5c78a2a6f78776427fcacc.tar.zst
nixpkgs-ed3a809a3dab44585c5c78a2a6f78776427fcacc.zip
Add the necessary preConfigure so that TeXstudio compile (find poppler-qt4.h)
Diffstat (limited to 'pkgs/applications/editors/texstudio')
-rw-r--r--pkgs/applications/editors/texstudio/default.nix13
1 files changed, 8 insertions, 5 deletions
diff --git a/pkgs/applications/editors/texstudio/default.nix b/pkgs/applications/editors/texstudio/default.nix
index 2a2d25ab3f7..20e8e4bba3e 100644
--- a/pkgs/applications/editors/texstudio/default.nix
+++ b/pkgs/applications/editors/texstudio/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, qt, popplerQt4, phonon }:
+{ stdenv, fetchurl, qt, popplerQt4, zlib}:
 
 stdenv.mkDerivation rec {
   pname = "texstudio";
@@ -7,13 +7,16 @@ stdenv.mkDerivation rec {
   altname="Texstudio";
 
   src = fetchurl {
-    url = "mirror://sourceforge/texstudio/${altname} ${version}/${name}.tar.gz";
-    sha1 = "0a5960689f2f9daef93391b96321ccc8c2e94c38";
+    url = "mirror://sourceforge/texstudio/${name}.tar.gz";
+    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; {
     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.";