mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 14:11:36 +00:00
735199a210
This switches a majority of the applications to using qt5.mkDerivation which automatically adds wrapQtAppsHook. In certain places, where GLib and gtk intersect with Qt, we also needed to use wrapGAppsHook. In these cases there will be multiple wrappers.
56 lines
1.4 KiB
Nix
56 lines
1.4 KiB
Nix
{ stdenv, mkDerivation, fetchFromGitHub, pkgconfig, qmake, qttools, qtsvg,
|
|
qtx11extras, dtkcore, dtkwidget, qt5integration, freeimage, libraw,
|
|
libexif, deepin
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
name = "${pname}-${version}";
|
|
pname = "deepin-image-viewer";
|
|
version = "1.3.17";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "linuxdeepin";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0hz4f1kqcycyvggwfzpkblhhha87rqd427hq0mf31jfh5x17ymnh";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkgconfig
|
|
qmake
|
|
qttools
|
|
deepin.setupHook
|
|
];
|
|
|
|
buildInputs = [
|
|
qtsvg
|
|
qtx11extras
|
|
dtkcore
|
|
dtkwidget
|
|
qt5integration
|
|
freeimage
|
|
libraw
|
|
libexif
|
|
];
|
|
|
|
postPatch = ''
|
|
searchHardCodedPaths
|
|
patchShebangs viewer/generate_translations.sh
|
|
fixPath $out /usr viewer/com.deepin.ImageViewer.service
|
|
sed -i qimage-plugins/freeimage/freeimage.pro \
|
|
qimage-plugins/libraw/libraw.pro \
|
|
-e "s,\$\$\[QT_INSTALL_PLUGINS\],$out/$qtPluginPrefix,"
|
|
'';
|
|
|
|
passthru.updateScript = deepin.updateScript { inherit name; };
|
|
|
|
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;
|
|
badPlatforms = [ "aarch64-linux" ]; # See https://github.com/NixOS/nixpkgs/pull/46463#issuecomment-420274189
|
|
maintainers = with maintainers; [ romildo ];
|
|
};
|
|
}
|