nixpkgs/pkgs/desktops/deepin/deepin-image-viewer/default.nix

55 lines
1.4 KiB
Nix
Raw Normal View History

{ stdenv, mkDerivation, fetchFromGitHub, pkgconfig, qmake, qttools, qtsvg,
2018-09-10 06:47:41 +02:00
qtx11extras, dtkcore, dtkwidget, qt5integration, freeimage, libraw,
2018-10-30 23:17:45 +01:00
libexif, deepin
2018-09-10 06:47:41 +02:00
}:
mkDerivation rec {
2018-09-10 06:47:41 +02:00
pname = "deepin-image-viewer";
version = "1.3.17";
2018-09-10 06:47:41 +02:00
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "0hz4f1kqcycyvggwfzpkblhhha87rqd427hq0mf31jfh5x17ymnh";
2018-09-10 06:47:41 +02:00
};
nativeBuildInputs = [
pkgconfig
qmake
qttools
deepin.setupHook
2018-09-10 06:47:41 +02:00
];
buildInputs = [
qtsvg
qtx11extras
dtkcore
dtkwidget
qt5integration
freeimage
libraw
libexif
];
postPatch = ''
searchHardCodedPaths
patchShebangs viewer/generate_translations.sh
fixPath $out /usr viewer/com.deepin.ImageViewer.service
2018-09-10 06:47:41 +02:00
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 = "${pname}-${version}"; };
2018-10-30 23:17:45 +01:00
2018-09-10 06:47:41 +02: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;
badPlatforms = [ "aarch64-linux" ]; # See https://github.com/NixOS/nixpkgs/pull/46463#issuecomment-420274189
2018-09-10 06:47:41 +02:00
maintainers = with maintainers; [ romildo ];
};
}