3
0
Fork 0
forked from mirrors/nixpkgs

zathura: set default window-icon

This commit is contained in:
Sergey Mironov 2014-02-20 13:31:16 +04:00 committed by Vladimír Čunát
parent 88d490588d
commit 5b223d457e
2 changed files with 11 additions and 5 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, gtk, girara, gettext, docutils, file, makeWrapper }:
{ stdenv, fetchurl, pkgconfig, gtk, girara, gettext, docutils, file, makeWrapper, zathura_icon }:
stdenv.mkDerivation rec {
version = "0.2.7";
@ -21,7 +21,12 @@ stdenv.mkDerivation rec {
makeFlags = [ "PREFIX=$(out)" "RSTTOMAN=${docutils}/bin/rst2man.py" "VERBOSE=1" ];
postInstall = ''
wrapProgram "$out/bin/zathura" --prefix PATH ":" "${file}/bin"
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
'';
meta = {

View file

@ -3,8 +3,11 @@
rec {
inherit (pkgs) stdenv;
icon = ./icon.xpm;
zathura_core = callPackage ./core {
gtk = pkgs.gtk3;
zathura_icon = icon;
};
zathura_pdf_poppler = callPackage ./pdf-poppler { };
@ -19,7 +22,7 @@ rec {
zathuraWrapper = stdenv.mkDerivation {
inherit zathura_core;
inherit zathura_core icon;
name = "zathura-${zathura_core.version}";
@ -29,8 +32,6 @@ rec {
zathura_ps
];
icon = ./icon.xpm;
builder = ./builder.sh;
preferLocalBuild = true;