appflowy: browser login redirect (#376016)
[NixPkgs.git] / pkgs / applications / office / qpdfview / default.nix
blobccac3a6e385a879a19ae0196ccee1b90b2309540
2   lib,
3   mkDerivation,
4   fetchurl,
5   qmake,
6   qtbase,
7   qttools,
8   qtsvg,
9   pkg-config,
10   poppler,
11   djvulibre,
12   libspectre,
13   cups,
14   file,
15   ghostscript,
18 mkDerivation rec {
19   pname = "qpdfview";
20   version = "0.5.0";
22   src = fetchurl {
23     url = "https://launchpad.net/qpdfview/trunk/${version}/+download/qpdfview-0.5.tar.gz";
24     hash = "sha256-RO/EQKRhy911eps5bxRh7novQ2ToHfVb0CIfkQIZvpk=";
25   };
27   nativeBuildInputs = [
28     qmake
29     qttools
30     pkg-config
31   ];
33   buildInputs = [
34     qtbase
35     qtsvg
36     poppler
37     djvulibre
38     libspectre
39     cups
40     file
41     ghostscript
42   ];
44   # needed for qmakeFlags+=( below
45   __structuredAttrs = true;
47   preConfigure = ''
48     lrelease qpdfview.pro
49     qmakeFlags+=(*.pro)
50   '';
52   qmakeFlags = [
53     "TARGET_INSTALL_PATH=${placeholder "out"}/bin"
54     "PLUGIN_INSTALL_PATH=${placeholder "out"}/lib/qpdfview"
55     "DATA_INSTALL_PATH=${placeholder "out"}/share/qpdfview"
56     "MANUAL_INSTALL_PATH=${placeholder "out"}/share/man/man1"
57     "ICON_INSTALL_PATH=${placeholder "out"}/share/icons/hicolor/scalable/apps"
58     "LAUNCHER_INSTALL_PATH=${placeholder "out"}/share/applications"
59     "APPDATA_INSTALL_PATH=${placeholder "out"}/share/appdata"
60   ];
62   env = {
63     # Fix build due to missing `std::option`.
64     NIX_CFLAGS_COMPILE = "-std=c++17";
65   };
67   meta = with lib; {
68     description = "Tabbed document viewer";
69     mainProgram = "qpdfview";
70     license = licenses.gpl2Plus;
71     maintainers = with maintainers; [ raskin ];
72     platforms = platforms.linux;
73     homepage = "https://launchpad.net/qpdfview";
74   };