forked from mirrors/nixpkgs
zathura: fix man pages; include .desktop icon
This commit is contained in:
parent
7cd4a5b0a1
commit
061627feed
|
@ -1,11 +1,21 @@
|
|||
source $stdenv/setup
|
||||
|
||||
mkdir -pv $out/bin/
|
||||
mkdir -pv $out/share/
|
||||
mkdir -pv $out/share/applications/
|
||||
mkdir -pv $out/share/pixmaps/
|
||||
|
||||
cat > $out/bin/zathura <<EOF
|
||||
#!/bin/sh
|
||||
exec $zathura --plugins-dir=$plugins_path "\$@"
|
||||
exec $zathura_core/bin/zathura --plugins-dir=$plugins_path "\$@"
|
||||
EOF
|
||||
|
||||
cp -rv $zathura_core/share/man $out/share
|
||||
cp -rv $zathura_core/share/locale $out/share
|
||||
cp -rv $icon $out/share/pixmaps/pwmt.xpm
|
||||
|
||||
cat $zathura_core/share/applications/zathura.desktop > $out/share/applications/zathura.desktop
|
||||
echo "Icon=pwmt" >> $out/share/applications/zathura.desktop
|
||||
|
||||
chmod 755 $out/bin/zathura
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchurl, pkgconfig, gtk, girara, gettext }:
|
||||
{ stdenv, fetchurl, pkgconfig, gtk, girara, gettext, docutils }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
|
@ -13,7 +13,14 @@ stdenv.mkDerivation rec {
|
|||
|
||||
buildInputs = [ pkgconfig gtk girara gettext ];
|
||||
|
||||
makeFlags = "PREFIX=$(out)";
|
||||
# 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" ];
|
||||
|
||||
meta = {
|
||||
homepage = http://pwmt.org/projects/zathura/;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ callPackage, pkgs }:
|
||||
{ callPackage, pkgs, fetchurl }:
|
||||
|
||||
rec {
|
||||
inherit (pkgs) stdenv;
|
||||
|
@ -11,7 +11,9 @@ rec {
|
|||
|
||||
zathura_ps = callPackage ./ps { };
|
||||
|
||||
zathuraWrapper = stdenv.mkDerivation rec {
|
||||
zathuraWrapper = stdenv.mkDerivation {
|
||||
|
||||
inherit zathura_core;
|
||||
|
||||
name = "zathura-${zathura_core.version}";
|
||||
|
||||
|
@ -21,7 +23,7 @@ rec {
|
|||
zathura_ps
|
||||
];
|
||||
|
||||
zathura = "${zathura_core}/bin/zathura";
|
||||
icon = ./icon.xpm;
|
||||
|
||||
builder = ./builder.sh;
|
||||
|
||||
|
|
120
pkgs/applications/misc/zathura/icon.xpm
Normal file
120
pkgs/applications/misc/zathura/icon.xpm
Normal file
|
@ -0,0 +1,120 @@
|
|||
/* XPM */
|
||||
static char *freeimage[] = {
|
||||
/* width height num_colors chars_per_pixel */
|
||||
"16 16 96 2",
|
||||
/* colors */
|
||||
" c #1e1e1e",
|
||||
" . c #222222",
|
||||
" X c #212121",
|
||||
" o c #535353",
|
||||
" O c #a4a4a4",
|
||||
" + c #202020",
|
||||
" @ c #252525",
|
||||
" # c #3c3c3c",
|
||||
" $ c #292929",
|
||||
" % c #979797",
|
||||
" & c #cccccc",
|
||||
" * c #303030",
|
||||
" = c #1f1f1f",
|
||||
" - c #494949",
|
||||
" ; c #dddddd",
|
||||
" : c #696969",
|
||||
" > c #232323",
|
||||
" , c #262626",
|
||||
" < c #adadad",
|
||||
" 1 c #bbbbbb",
|
||||
" 2 c #1d1d1d",
|
||||
" 3 c #1c1c1c",
|
||||
" 4 c #5e5e5e",
|
||||
" 5 c #e8e8e8",
|
||||
" 6 c #9c9c9c",
|
||||
" 7 c #242424",
|
||||
" 8 c #b1b1b1",
|
||||
" 9 c #b3b3b3",
|
||||
" 0 c #090909",
|
||||
" q c #161616",
|
||||
" w c #131313",
|
||||
" e c #4d4d4d",
|
||||
" r c #dedede",
|
||||
" t c #afafaf",
|
||||
" y c #282828",
|
||||
" u c #393939",
|
||||
" i c #c4c4c4",
|
||||
" p c #dcdcdc",
|
||||
" a c #9a9a9a",
|
||||
" s c #a2a2a2",
|
||||
" d c #ababab",
|
||||
" f c #313131",
|
||||
" g c #a7a7a7",
|
||||
" h c #e4e4e4",
|
||||
" j c #f2f2f2",
|
||||
" k c #eaeaea",
|
||||
" l c #e2e2e2",
|
||||
" z c #f0f0f0",
|
||||
" x c #d5d5d5",
|
||||
" c c #737373",
|
||||
" v c #323232",
|
||||
" b c #808080",
|
||||
" n c #7a7a7a",
|
||||
" m c #d3d3d3",
|
||||
" M c #e5e5e5",
|
||||
" N c #8a8a8a",
|
||||
" B c #cbcbcb",
|
||||
" V c #b5b5b5",
|
||||
" C c #b9b9b9",
|
||||
" Z c #272727",
|
||||
" A c #b4b4b4",
|
||||
" S c #bababa",
|
||||
" D c #2d2d2d",
|
||||
" F c #414141",
|
||||
" G c #444444",
|
||||
" H c #f4f4f4",
|
||||
" J c #838383",
|
||||
" K c #cfcfcf",
|
||||
" L c #fafafa",
|
||||
" P c #efefef",
|
||||
" I c #e3e3e3",
|
||||
" U c #8d8d8d",
|
||||
" Y c #656565",
|
||||
" T c #ffffff",
|
||||
" R c #fbfbfb",
|
||||
" E c #e9e9e9",
|
||||
" W c #bdbdbd",
|
||||
" Q c #e1e1e1",
|
||||
" ! c #dfdfdf",
|
||||
" ~ c #646464",
|
||||
" ^ c #3a3a3a",
|
||||
" / c #a1a1a1",
|
||||
" ( c #999999",
|
||||
" ) c #c0c0c0",
|
||||
" _ c #3b3b3b",
|
||||
" ` c #acacac",
|
||||
" ' c #050505",
|
||||
" ] c #151515",
|
||||
" [ c #1b1b1b",
|
||||
" { c #1a1a1a",
|
||||
" } c #b2b2b2",
|
||||
" | c #a5a5a5",
|
||||
". c #c5c5c5",
|
||||
".. c #a6a6a6",
|
||||
".X c #bfbfbf",
|
||||
".o c #747474",
|
||||
/* pixels */
|
||||
" ",
|
||||
" . . . X X X X . o O + X . . ",
|
||||
" . . X @ # $ . @ % & * = . . ",
|
||||
" . . - ; : > , < 1 2 X . . ",
|
||||
" . . 3 4 5 6 7 7 8 9 0 q q 3 ",
|
||||
" . + w e r t y u i p a s d 4 ",
|
||||
" X f g h j k p l z z x g c v ",
|
||||
" X f b n m M N c B V 3 , > X ",
|
||||
" X X w V C $ Z A S + $ , . ",
|
||||
" D F G u S H 1 J K L P I U @ ",
|
||||
" Y T T T R E & W Q ! d g ~ 7 ",
|
||||
" ^ / 6 ( ; ) _ 2 ` 8 ' ] [ X ",
|
||||
" + > 7 { A } 7 @ |. $ + . . ",
|
||||
" X X X ].. 8 Z 7 n.X + X . . ",
|
||||
" . . . { n.o 7 . @ y X X . . ",
|
||||
" "
|
||||
};
|
||||
|
|
@ -8173,7 +8173,7 @@ let
|
|||
|
||||
zathuraCollection = recurseIntoAttrs
|
||||
(let callPackage = newScope pkgs.zathuraCollection; in
|
||||
import ../applications/misc/zathura { inherit callPackage pkgs; });
|
||||
import ../applications/misc/zathura { inherit callPackage pkgs fetchurl; });
|
||||
|
||||
zathura = zathuraCollection.zathuraWrapper;
|
||||
|
||||
|
|
Loading…
Reference in a new issue