nixpkgs/pkgs/desktops/deepin/deepin-image-viewer/default.nix
José Romildo Malaquias c47f99e4d8 deepin.deepin-image-viewer: 1.2.23 -> 1.3.1
- Update to version 1.3.1

- Currently does not build on aarch64-linux. It seems that in the libpng
package (which is bundled with freeimage) neon is not available on the
platform, but is detected as being available.
2018-11-10 12:33:38 -02:00

55 lines
1.3 KiB
Nix

{ stdenv, fetchFromGitHub, pkgconfig, qmake, qttools, qtsvg,
qtx11extras, dtkcore, dtkwidget, qt5integration, freeimage, libraw,
libexif, deepin
}:
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "deepin-image-viewer";
version = "1.3.1";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "0dxdvm6hzj6izfxka35za8y7vacd06nksfgzx6xsv7ywzagri4k5";
};
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,"
'';
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 ];
};
}