From 492645a34775b8de55dcd0e3409300aa8f44024e Mon Sep 17 00:00:00 2001 From: Sergey Mironov Date: Fri, 26 Apr 2013 15:21:56 +0400 Subject: [PATCH] zathura: fix missing [/bin/]file issue --- pkgs/applications/misc/zathura/core/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/zathura/core/default.nix b/pkgs/applications/misc/zathura/core/default.nix index a3726fd460d..e5eae771d8b 100644 --- a/pkgs/applications/misc/zathura/core/default.nix +++ b/pkgs/applications/misc/zathura/core/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, pkgconfig, gtk, girara, gettext, docutils }: +{ stdenv, fetchurl, pkgconfig, gtk, girara, gettext, docutils, file, makeWrapper }: stdenv.mkDerivation rec { @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { sha256 = "1ja2j9ygymr259fxf02j1vkvalypac48gpadq8fn3qbclxxj61k5"; }; - buildInputs = [ pkgconfig gtk girara gettext ]; + buildInputs = [ pkgconfig gtk girara gettext makeWrapper ]; # Bug in zathura build system: we should remove empty manfiles in order them # to be compiled properly @@ -22,6 +22,10 @@ stdenv.mkDerivation rec { makeFlags = [ "PREFIX=$(out)" "RSTTOMAN=${docutils}/bin/rst2man.py" "VERBOSE=1" ]; + postInstall = '' + wrapProgram "$out/bin/zathura" --prefix PATH ":" "${file}/bin" + ''; + meta = { homepage = http://pwmt.org/projects/zathura/; description = "A core component for zathura PDF viewer";