summary refs log tree commit diff
path: root/pkgs/applications/misc/zathura/core
diff options
context:
space:
mode:
authorAlexey Shmalko <rasen.dubi@gmail.com>2016-06-10 17:04:22 +0300
committerNikolay Amiantov <ab@fmap.me>2016-06-10 17:32:48 +0300
commitb21329e0e04a7f7a6f37686f75ced7207750885e (patch)
tree95d2da08a83c6645b667a155584fcc39f13fa6d6 /pkgs/applications/misc/zathura/core
parent4fbafb23957c04dded895a17f052428fa21e51e9 (diff)
downloadnixpkgs-b21329e0e04a7f7a6f37686f75ced7207750885e.tar
nixpkgs-b21329e0e04a7f7a6f37686f75ced7207750885e.tar.gz
nixpkgs-b21329e0e04a7f7a6f37686f75ced7207750885e.tar.bz2
nixpkgs-b21329e0e04a7f7a6f37686f75ced7207750885e.tar.lz
nixpkgs-b21329e0e04a7f7a6f37686f75ced7207750885e.tar.xz
nixpkgs-b21329e0e04a7f7a6f37686f75ced7207750885e.tar.zst
nixpkgs-b21329e0e04a7f7a6f37686f75ced7207750885e.zip
zathura: Enable synctex support
Closes #15984.
abbradar: list is not needed for lib.optional
Diffstat (limited to 'pkgs/applications/misc/zathura/core')
-rw-r--r--pkgs/applications/misc/zathura/core/default.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/applications/misc/zathura/core/default.nix b/pkgs/applications/misc/zathura/core/default.nix
index 0048cb73878..dbb406a23e6 100644
--- a/pkgs/applications/misc/zathura/core/default.nix
+++ b/pkgs/applications/misc/zathura/core/default.nix
@@ -1,4 +1,8 @@
-{ stdenv, fetchurl, pkgconfig, gtk, girara, ncurses, gettext, docutils, file, makeWrapper, zathura_icon, sqlite, glib }:
+{ stdenv, lib, fetchurl, pkgconfig, gtk, girara, ncurses, gettext, docutils, file, makeWrapper, zathura_icon, sqlite, glib
+, synctexSupport ? true, texlive ? null
+}:
+
+assert synctexSupport -> texlive != null;
 
 stdenv.mkDerivation rec {
   version = "0.3.6";
@@ -9,7 +13,8 @@ stdenv.mkDerivation rec {
     sha256 = "0fyb5hak0knqvg90rmdavwcmilhnrwgg1s5ykx9wd3skbpi8nsh8";
   };
 
-  buildInputs = [ pkgconfig file gtk girara gettext makeWrapper sqlite glib ];
+  buildInputs = [ pkgconfig file gtk girara gettext makeWrapper sqlite glib
+  ] ++ lib.optional synctexSupport texlive.bin.core;
 
   NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
 
@@ -18,7 +23,7 @@ stdenv.mkDerivation rec {
     "RSTTOMAN=${docutils}/bin/rst2man.py"
     "VERBOSE=1"
     "TPUT=${ncurses.out}/bin/tput"
-  ];
+  ] ++ lib.optional synctexSupport "WITH_SYNCTEX=1";
 
   postInstall = ''
     wrapProgram "$out/bin/zathura" \