forked from mirrors/nixpkgs
zathura: set default window-icon
This commit is contained in:
parent
88d490588d
commit
5b223d457e
|
@ -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 = {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue