deepin-image-viewer: init at 1.2.23
This commit is contained in:
parent
48abf865bc
commit
5efede93d2
51
pkgs/desktops/deepin/deepin-image-viewer/default.nix
Normal file
51
pkgs/desktops/deepin/deepin-image-viewer/default.nix
Normal file
@ -0,0 +1,51 @@
|
||||
{ stdenv, fetchFromGitHub, pkgconfig, qmake, qttools, qtsvg,
|
||||
qtx11extras, dtkcore, dtkwidget, qt5integration, freeimage, libraw,
|
||||
libexif
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "deepin-image-viewer";
|
||||
version = "1.2.23";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "linuxdeepin";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1n1b3j65in6v7q5bxgkiam8qy56kjn9prld3sjrbc2mqzff8sm3q";
|
||||
};
|
||||
|
||||
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,"
|
||||
'';
|
||||
|
||||
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;
|
||||
maintainers = with maintainers; [ romildo ];
|
||||
};
|
||||
}
|
@ -9,6 +9,7 @@ let
|
||||
deepin-gettext-tools = callPackage ./deepin-gettext-tools { };
|
||||
deepin-gtk-theme = callPackage ./deepin-gtk-theme { };
|
||||
deepin-icon-theme = callPackage ./deepin-icon-theme { };
|
||||
deepin-image-viewer = callPackage ./deepin-image-viewer { };
|
||||
deepin-menu = callPackage ./deepin-menu { };
|
||||
deepin-mutter = callPackage ./deepin-mutter { };
|
||||
deepin-shortcut-viewer = callPackage ./deepin-shortcut-viewer { };
|
||||
|
Loading…
Reference in New Issue
Block a user