2015-01-04 15:26:32 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gtk, girara, ncurses, gettext, docutils, file, makeWrapper, zathura_icon, sqlite }:
|
2012-05-14 22:43:46 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-05-06 15:34:12 +01:00
|
|
|
version = "0.3.3";
|
2012-05-14 22:43:46 +01:00
|
|
|
name = "zathura-core-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://pwmt.org/projects/zathura/download/zathura-${version}.tar.gz";
|
2015-05-06 15:34:12 +01:00
|
|
|
sha256 = "1rywx09qn6ap5hb1z31wxby4lzdrqdbldm51pjk1ifflr37xwirk";
|
2012-05-14 22:43:46 +01:00
|
|
|
};
|
|
|
|
|
2015-01-04 15:26:32 +00:00
|
|
|
buildInputs = [ pkgconfig file gtk girara gettext makeWrapper sqlite ];
|
2012-05-14 22:43:46 +01:00
|
|
|
|
2014-10-23 12:57:30 +01:00
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
"RSTTOMAN=${docutils}/bin/rst2man.py"
|
|
|
|
"VERBOSE=1"
|
|
|
|
"TPUT=${ncurses}/bin/tput"
|
|
|
|
];
|
2012-05-14 22:43:46 +01:00
|
|
|
|
2013-04-26 12:21:56 +01:00
|
|
|
postInstall = ''
|
2014-02-20 09:31:16 +00:00
|
|
|
wrapProgram "$out/bin/zathura" \
|
|
|
|
--prefix PATH ":" "${file}/bin" \
|
|
|
|
--prefix XDG_CONFIG_DIRS ":" "$out/etc"
|
|
|
|
|
|
|
|
mkdir -pv $out/etc
|
|
|
|
echo "set window-icon ${zathura_icon}" > $out/etc/zathurarc
|
2013-04-26 12:21:56 +01:00
|
|
|
'';
|
|
|
|
|
2012-05-14 22:43:46 +01:00
|
|
|
meta = {
|
2012-08-16 15:33:25 +01:00
|
|
|
homepage = http://pwmt.org/projects/zathura/;
|
|
|
|
description = "A core component for zathura PDF viewer";
|
2013-02-23 10:39:32 +00:00
|
|
|
license = stdenv.lib.licenses.zlib;
|
2012-05-14 22:43:46 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2013-02-23 10:39:32 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.garbas ];
|
2012-05-14 22:43:46 +01:00
|
|
|
|
|
|
|
# Set lower priority in order to provide user with a wrapper script called
|
|
|
|
# 'zathura' instead of real zathura executable. The wrapper will build
|
|
|
|
# plugin path argument before executing the original.
|
|
|
|
priority = 1;
|
|
|
|
};
|
|
|
|
}
|