3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/qpdfview/default.nix

50 lines
1.5 KiB
Nix
Raw Normal View History

{lib, mkDerivation, fetchurl, qmake, qtbase, qtsvg, pkg-config, poppler, djvulibre, libspectre, cups
, file, ghostscript
}:
let
s = # Generated upstream information
rec {
baseName="qpdfview";
2019-08-06 06:10:56 +01:00
version = "0.4.18";
name="${baseName}-${version}";
url="https://launchpad.net/qpdfview/trunk/${version}/+download/qpdfview-${version}.tar.gz";
2019-08-06 06:10:56 +01:00
sha256 = "0v1rl126hvblajnph2hkansgi0s8vjdc5yxrm4y3faa0lxzjwr6c";
};
nativeBuildInputs = [ qmake pkg-config ];
buildInputs = [
qtbase qtsvg poppler djvulibre libspectre cups file ghostscript
];
in
2019-08-06 06:10:56 +01:00
mkDerivation {
pname = s.baseName;
inherit (s) version;
inherit nativeBuildInputs buildInputs;
src = fetchurl {
inherit (s) url sha256;
};
preConfigure = ''
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 11:48:31 +01:00
meta = {
inherit (s) version;
description = "A tabbed document viewer";
2021-01-15 05:42:41 +00:00
license = lib.licenses.gpl2;
maintainers = [lib.maintainers.raskin];
platforms = lib.platforms.linux;
homepage = "https://launchpad.net/qpdfview";
updateWalker = true;
};
}