tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
Add apvlv pdf reader
Antoine R. Dumont
10 years ago
dac5a45a
c659105e
+50
2 changed files
expand all
collapse all
unified
split
pkgs
applications
misc
apvlv
default.nix
top-level
all-packages.nix
+48
pkgs/applications/misc/apvlv/default.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{ stdenv, fetchurl, cmake, pkgconfig,
2
+
gtk2 , poppler, freetype, libpthreadstubs, libXdmcp, libxshmfence
3
+
}:
4
+
5
+
stdenv.mkDerivation rec {
6
+
version = "0.1.f7f7b9c";
7
+
name = "apvlv-${version}";
8
+
9
+
src = fetchurl {
10
+
url = "https://github.com/downloads/naihe2010/apvlv/${name}-Source.tar.gz";
11
+
sha256 = "125nlcfjdhgzi9jjxh9l2yc9g39l6jahf8qh2555q20xkxf4rl0w";
12
+
};
13
+
14
+
preConfigure = ''
15
+
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${poppler}/include/poppler"
16
+
'';
17
+
18
+
buildInputs = [
19
+
pkgconfig cmake
20
+
poppler
21
+
freetype gtk2
22
+
libpthreadstubs libXdmcp libxshmfence # otherwise warnings in compilation
23
+
];
24
+
25
+
installPhase = ''
26
+
# binary
27
+
mkdir -p $out/bin
28
+
cp src/apvlv $out/bin/apvlv
29
+
30
+
# displays pdfStartup.pdf as default pdf entry
31
+
mkdir -p $out/share/doc/apvlv/
32
+
cp ../Startup.pdf $out/share/doc/apvlv/Startup.pdf
33
+
'';
34
+
35
+
meta = with stdenv.lib; {
36
+
homepage = "http://naihe2010.github.io/apvlv/";
37
+
description = "PDF viewer with Vim-like behaviour";
38
+
longDescription = ''
39
+
apvlv is a PDF/DJVU/UMD/TXT Viewer Under Linux/WIN32
40
+
with Vim-like behaviour.
41
+
'';
42
+
43
+
license = licenses.lgpl2;
44
+
platforms = platforms.unix;
45
+
maintainers = [ maintainers.ardumont ];
46
+
};
47
+
48
+
}
+2
pkgs/top-level/all-packages.nix
···
13031
inherit (gnome) libgnomeprint libgnomeprintui libgnomecanvas;
13032
};
13033
0
0
13034
xpdf = callPackage ../applications/misc/xpdf {
13035
motif = lesstif;
13036
base14Fonts = "${ghostscript}/share/ghostscript/fonts";
···
13031
inherit (gnome) libgnomeprint libgnomeprintui libgnomecanvas;
13032
};
13033
13034
+
apvlv = callPackage ../applications/misc/apvlv { };
13035
+
13036
xpdf = callPackage ../applications/misc/xpdf {
13037
motif = lesstif;
13038
base14Fonts = "${ghostscript}/share/ghostscript/fonts";