2018-09-10 05:47:41 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, qmake, qttools, qtsvg,
|
|
|
|
qtx11extras, dtkcore, dtkwidget, qt5integration, freeimage, libraw,
|
2018-10-30 22:17:45 +00:00
|
|
|
libexif, deepin
|
2018-09-10 05:47:41 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "deepin-image-viewer";
|
2018-10-31 00:16:20 +00:00
|
|
|
version = "1.3.1";
|
2018-09-10 05:47:41 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2018-10-31 00:16:20 +00:00
|
|
|
sha256 = "0dxdvm6hzj6izfxka35za8y7vacd06nksfgzx6xsv7ywzagri4k5";
|
2018-09-10 05:47:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
qmake
|
|
|
|
qttools
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtsvg
|
|
|
|
qtx11extras
|
|
|
|
dtkcore
|
|
|
|
dtkwidget
|
|
|
|
qt5integration
|
|
|
|
freeimage
|
|
|
|
libraw
|
|
|
|
libexif
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
|
|
|
sed -i qimage-plugins/freeimage/freeimage.pro \
|
|
|
|
qimage-plugins/libraw/libraw.pro \
|
|
|
|
-e "s,\$\$\[QT_INSTALL_PLUGINS\],$out/$qtPluginPrefix,"
|
|
|
|
sed -i viewer/com.deepin.ImageViewer.service \
|
|
|
|
-e "s,/usr,$out,"
|
|
|
|
'';
|
|
|
|
|
2018-10-30 22:17:45 +00:00
|
|
|
passthru.updateScript = deepin.updateScript { inherit name; };
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|