2013-02-27 23:36:25 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gtk, girara, gettext, docutils }:
|
2012-05-14 23:43:46 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2013-02-23 11:39:32 +01:00
|
|
|
version = "0.2.2";
|
2012-05-14 23:43:46 +02:00
|
|
|
|
|
|
|
name = "zathura-core-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://pwmt.org/projects/zathura/download/zathura-${version}.tar.gz";
|
2013-02-23 11:39:32 +01:00
|
|
|
sha256 = "1ja2j9ygymr259fxf02j1vkvalypac48gpadq8fn3qbclxxj61k5";
|
2012-05-14 23:43:46 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pkgconfig gtk girara gettext ];
|
|
|
|
|
2013-02-27 23:36:25 +01:00
|
|
|
# Bug in zathura build system: we should remove empty manfiles in order them
|
|
|
|
# to be compiled properly
|
|
|
|
preBuild = ''
|
|
|
|
rm zathura.1
|
|
|
|
rm zathurarc.5
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" "RSTTOMAN=${docutils}/bin/rst2man.py" "VERBOSE=1" ];
|
2012-05-14 23:43:46 +02:00
|
|
|
|
|
|
|
meta = {
|
2012-08-16 16:33:25 +02:00
|
|
|
homepage = http://pwmt.org/projects/zathura/;
|
|
|
|
description = "A core component for zathura PDF viewer";
|
2013-02-23 11:39:32 +01:00
|
|
|
license = stdenv.lib.licenses.zlib;
|
2012-05-14 23:43:46 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2013-02-23 11:39:32 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.garbas ];
|
2012-05-14 23:43:46 +02: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;
|
|
|
|
};
|
|
|
|
}
|