Merge pull request #22832 from rnhmjoj/zathura

zathura: 0.3.6 -> 0.3.7
This commit is contained in:
Arseniy Seroka 2017-02-15 18:19:06 +03:00 committed by GitHub
commit c16bfb8ac1
1 changed files with 22 additions and 15 deletions

View File

@ -1,22 +1,28 @@
{ stdenv, lib, fetchurl, pkgconfig, gtk, girara, ncurses, gettext, docutils { stdenv, fetchurl, makeWrapper, pkgconfig
, file, makeWrapper, sqlite, glib , gtk, girara, ncurses, gettext, docutils
, synctexSupport ? true, texlive ? null }: , file, sqlite, glib, texlive
, synctexSupport ? true
}:
assert synctexSupport -> texlive != null; assert synctexSupport -> texlive != null;
with stdenv.lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "0.3.6"; name = "zathura-core-${version}";
name = "zathura-core-${version}"; version = "0.3.7";
src = fetchurl { src = fetchurl {
url = "http://pwmt.org/projects/zathura/download/zathura-${version}.tar.gz"; url = "http://pwmt.org/projects/zathura/download/zathura-${version}.tar.gz";
sha256 = "0fyb5hak0knqvg90rmdavwcmilhnrwgg1s5ykx9wd3skbpi8nsh8"; sha256 = "1w0g74dq4z2vl3f99s2gkaqrb5pskgzig10qhbxj4gq9yj4zzbr2";
}; };
icon = ./icon.xpm; icon = ./icon.xpm;
buildInputs = [ pkgconfig file gtk girara gettext makeWrapper sqlite glib buildInputs = [
] ++ lib.optional synctexSupport texlive.bin.core; pkgconfig file gtk girara
gettext makeWrapper sqlite glib
] ++ optional synctexSupport texlive.bin.core;
NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
@ -25,11 +31,12 @@ stdenv.mkDerivation rec {
"RSTTOMAN=${docutils}/bin/rst2man.py" "RSTTOMAN=${docutils}/bin/rst2man.py"
"VERBOSE=1" "VERBOSE=1"
"TPUT=${ncurses.out}/bin/tput" "TPUT=${ncurses.out}/bin/tput"
] ++ lib.optional synctexSupport "WITH_SYNCTEX=1"; (optionalString synctexSupport "WITH_SYNCTEX=1")
];
postInstall = '' postInstall = ''
wrapProgram "$out/bin/zathura" \ wrapProgram "$out/bin/zathura" \
--prefix PATH ":" "${lib.makeBinPath [ file ]}" \ --prefix PATH ":" "${makeBinPath [ file ]}" \
--prefix XDG_CONFIG_DIRS ":" "$out/etc" --prefix XDG_CONFIG_DIRS ":" "$out/etc"
install -Dm644 $icon $out/share/pixmaps/pwmt.xpm install -Dm644 $icon $out/share/pixmaps/pwmt.xpm
@ -38,11 +45,11 @@ stdenv.mkDerivation rec {
echo "Icon=pwmt" >> $out/share/applications/zathura.desktop echo "Icon=pwmt" >> $out/share/applications/zathura.desktop
''; '';
meta = with stdenv.lib; { meta = {
homepage = http://pwmt.org/projects/zathura/; homepage = http://pwmt.org/projects/zathura/;
description = "A core component for zathura PDF viewer"; description = "A core component for zathura PDF viewer";
license = licenses.zlib; license = licenses.zlib;
platforms = platforms.linux; platforms = platforms.linux;
maintainers = with maintainers; [ garbas ]; maintainers = with maintainers; [ garbas ];
}; };
} }