uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
59
pkgs/applications/misc/qpdfview/default.nix
Normal file
59
pkgs/applications/misc/qpdfview/default.nix
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
{ lib
|
||||
, mkDerivation
|
||||
, fetchurl
|
||||
, qmake
|
||||
, qtbase
|
||||
, qtsvg
|
||||
, pkg-config
|
||||
, poppler
|
||||
, djvulibre
|
||||
, libspectre
|
||||
, cups
|
||||
, file
|
||||
, ghostscript
|
||||
}:
|
||||
mkDerivation rec {
|
||||
pname = "qpdfview";
|
||||
version = "0.4.18";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://launchpad.net/qpdfview/trunk/${version}/+download/qpdfview-${version}.tar.gz";
|
||||
sha256 = "0v1rl126hvblajnph2hkansgi0s8vjdc5yxrm4y3faa0lxzjwr6c";
|
||||
};
|
||||
|
||||
# apply upstream fix for qt5.15 https://bazaar.launchpad.net/~adamreichold/qpdfview/trunk/revision/2104
|
||||
patches = [ ./qpdfview-qt515-compat.patch ];
|
||||
|
||||
nativeBuildInputs = [ qmake pkg-config ];
|
||||
buildInputs = [
|
||||
qtbase
|
||||
qtsvg
|
||||
poppler
|
||||
djvulibre
|
||||
libspectre
|
||||
cups
|
||||
file
|
||||
ghostscript
|
||||
];
|
||||
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"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A tabbed document viewer";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ raskin ];
|
||||
platforms = platforms.linux;
|
||||
homepage = "https://launchpad.net/qpdfview";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue