27 stdenv.mkDerivation (finalAttrs: {
30 # If you change the version, please also update src.rev accordingly
33 src = fetchFromGitHub {
36 rev = "refs/tags/v0.5.0-final";
37 hash = "sha256-5Wbv3dXieymhhPmEKQu8X/38WsDA1T/IBPoMXdpzcaA=";
40 env.NIX_CFLAGS_COMPILE = "-I${poppler.dev}/include/poppler";
61 libxshmfence # otherwise warnings in compilation
72 cp src/apvlv $out/bin/apvlv
74 # displays pdfStartup.pdf as default pdf entry
75 mkdir -p $out/share/doc/apvlv/
76 cp ../Startup.pdf $out/share/doc/apvlv/Startup.pdf
77 cp ../main_menubar.glade $out/share/doc/apvlv/main_menubar.glade
80 cp ../apvlvrc.example $out/etc/apvlvrc
82 installManPage ../apvlv.1
92 tests.version = testers.testVersion {
93 command = "${lib.getExe finalAttrs.finalPackage} -v";
94 package = finalAttrs.finalPackage;
95 version = "${finalAttrs.version}-rel";
100 changelog = "https://github.com/naihe2010/apvlv/blob/v${finalAttrs.version}/NEWS";
101 description = "PDF viewer with Vim-like behaviour";
102 homepage = "https://naihe2010.github.io/apvlv/";
103 license = lib.licenses.lgpl2;
105 apvlv is a PDF/DJVU/UMD/TXT Viewer Under Linux/WIN32
106 with Vim-like behaviour.
108 mainProgram = "apvlv";
109 maintainers = with lib.maintainers; [ ardumont anthonyroussel ];
110 platforms = lib.platforms.linux;