2019-07-22 03:53:18 +01:00
|
|
|
{ stdenv, mkDerivation, fetchFromGitHub, pkgconfig, qmake, qttools, qtsvg,
|
2018-09-10 05:47:41 +01:00
|
|
|
qtx11extras, dtkcore, dtkwidget, qt5integration, freeimage, libraw,
|
2018-10-30 22:17:45 +00:00
|
|
|
libexif, deepin
|
2018-09-10 05:47:41 +01:00
|
|
|
}:
|
|
|
|
|
2019-07-22 03:53:18 +01:00
|
|
|
mkDerivation rec {
|
2018-09-10 05:47:41 +01:00
|
|
|
pname = "deepin-image-viewer";
|
2019-11-12 01:08:39 +00:00
|
|
|
version = "5.0.0";
|
2018-09-10 05:47:41 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-11-12 01:08:39 +00:00
|
|
|
sha256 = "01524hfdy3wvdf07n9b3qb8jdpxzg2hwjpl4gxvr68qws5nbnb3c";
|
2018-09-10 05:47:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
qmake
|
|
|
|
qttools
|
2018-11-27 17:23:55 +00:00
|
|
|
deepin.setupHook
|
2018-09-10 05:47:41 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtsvg
|
|
|
|
qtx11extras
|
|
|
|
dtkcore
|
|
|
|
dtkwidget
|
|
|
|
qt5integration
|
|
|
|
freeimage
|
|
|
|
libraw
|
|
|
|
libexif
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2018-11-27 17:23:55 +00:00
|
|
|
searchHardCodedPaths
|
|
|
|
patchShebangs viewer/generate_translations.sh
|
|
|
|
fixPath $out /usr viewer/com.deepin.ImageViewer.service
|
2018-09-10 05:47:41 +01:00
|
|
|
sed -i qimage-plugins/freeimage/freeimage.pro \
|
|
|
|
qimage-plugins/libraw/libraw.pro \
|
|
|
|
-e "s,\$\$\[QT_INSTALL_PLUGINS\],$out/$qtPluginPrefix,"
|
|
|
|
'';
|
|
|
|
|
2019-08-15 13:41:18 +01:00
|
|
|
passthru.updateScript = deepin.updateScript { inherit ;name = "${pname}-${version}"; };
|
2018-10-30 22:17:45 +00:00
|
|
|
|
2018-09-10 05:47:41 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Image Viewer for Deepin Desktop Environment";
|
|
|
|
homepage = https://github.com/linuxdeepin/deepin-image-viewer;
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
2018-10-31 00:16:20 +00:00
|
|
|
badPlatforms = [ "aarch64-linux" ]; # See https://github.com/NixOS/nixpkgs/pull/46463#issuecomment-420274189
|
2018-09-10 05:47:41 +01:00
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|