nixpkgs/pkgs/applications/office/qpdfview/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

72 lines
1.5 KiB
Nix
Raw Normal View History

2022-01-12 23:22:37 +00:00
{ lib
, mkDerivation
, fetchurl
, qmake
, qtbase
, qttools
2022-01-12 23:22:37 +00:00
, qtsvg
, pkg-config
, poppler
, djvulibre
, libspectre
, cups
, file
, ghostscript
}:
2023-01-30 06:26:55 +00:00
2022-01-12 23:22:37 +00:00
mkDerivation rec {
pname = "qpdfview";
2023-01-30 06:26:55 +00:00
version = "0.5.0";
2022-01-12 23:22:37 +00:00
src = fetchurl {
2023-01-30 06:26:55 +00:00
url = "https://launchpad.net/qpdfview/trunk/${version}/+download/qpdfview-0.5.tar.gz";
hash = "sha256-RO/EQKRhy911eps5bxRh7novQ2ToHfVb0CIfkQIZvpk=";
};
2022-01-12 23:22:37 +00:00
2023-01-30 06:26:55 +00:00
nativeBuildInputs = [
qmake
qttools
2023-01-30 06:26:55 +00:00
pkg-config
];
2022-01-12 23:22:37 +00:00
buildInputs = [
qtbase
qtsvg
poppler
djvulibre
libspectre
cups
file
ghostscript
];
2023-01-30 06:26:55 +00:00
preConfigure = ''
lrelease qpdfview.pro
qmakeFlags+=(*.pro)
'';
qmakeFlags = [
"TARGET_INSTALL_PATH=${placeholder "out"}/bin"
"PLUGIN_INSTALL_PATH=${placeholder "out"}/lib/qpdfview"
"DATA_INSTALL_PATH=${placeholder "out"}/share/qpdfview"
"MANUAL_INSTALL_PATH=${placeholder "out"}/share/man/man1"
"ICON_INSTALL_PATH=${placeholder "out"}/share/icons/hicolor/scalable/apps"
"LAUNCHER_INSTALL_PATH=${placeholder "out"}/share/applications"
"APPDATA_INSTALL_PATH=${placeholder "out"}/share/appdata"
];
2018-03-28 10:48:31 +00:00
env = {
# Fix build due to missing `std::option`.
NIX_CFLAGS_COMPILE = "-std=c++17";
};
2022-01-12 23:22:37 +00:00
meta = with lib; {
description = "A tabbed document viewer";
mainProgram = "qpdfview";
2022-01-12 23:22:37 +00:00
license = licenses.gpl2Plus;
maintainers = with maintainers; [ raskin ];
platforms = platforms.linux;
homepage = "https://launchpad.net/qpdfview";
};
}