2023-02-09 11:40:11 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, qttools
|
|
|
|
, wrapQtAppsHook
|
|
|
|
, dtkwidget
|
|
|
|
, qt5integration
|
|
|
|
, qt5platform-plugins
|
2023-04-12 12:48:02 +00:00
|
|
|
, qtbase
|
|
|
|
, qtsvg
|
2023-02-09 11:40:11 +00:00
|
|
|
, udisks2-qt5
|
|
|
|
, gio-qt
|
|
|
|
, image-editor
|
|
|
|
, glibmm
|
|
|
|
, freeimage
|
|
|
|
, opencv
|
|
|
|
, ffmpeg
|
|
|
|
, ffmpegthumbnailer
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "deepin-album";
|
|
|
|
version = "5.10.9";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-S/oVRD72dtpnvfGV6YfN5/syrmWA44H/1BbmAe0xjAY=";
|
|
|
|
};
|
|
|
|
|
|
|
|
# This patch should be removed after upgrading to 6.0.0
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace libUnionImage/CMakeLists.txt \
|
|
|
|
--replace "/usr" "$out"
|
|
|
|
substituteInPlace src/CMakeLists.txt \
|
2023-04-12 12:48:02 +00:00
|
|
|
--replace "/usr" "$out"
|
2023-02-09 11:40:11 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
qttools
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dtkwidget
|
2023-04-12 12:48:02 +00:00
|
|
|
qt5integration
|
2023-02-09 11:40:11 +00:00
|
|
|
qt5platform-plugins
|
2023-04-12 12:48:02 +00:00
|
|
|
qtbase
|
|
|
|
qtsvg
|
2023-02-09 11:40:11 +00:00
|
|
|
udisks2-qt5
|
|
|
|
gio-qt
|
|
|
|
image-editor
|
|
|
|
glibmm
|
|
|
|
freeimage
|
|
|
|
opencv
|
|
|
|
ffmpeg
|
|
|
|
ffmpegthumbnailer
|
|
|
|
];
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
strictDeps = true;
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
cmakeFlags = [ "-DVERSION=${version}" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A fashion photo manager for viewing and organizing pictures";
|
|
|
|
homepage = "https://github.com/linuxdeepin/deepin-album";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = teams.deepin.members;
|
|
|
|
};
|
|
|
|
}
|