git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
dtkwidget,
|
|
cmake,
|
|
libsForQt5,
|
|
pkg-config,
|
|
opencv,
|
|
freeimage,
|
|
libmediainfo,
|
|
ffmpegthumbnailer,
|
|
pcre,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "image-editor";
|
|
version = "1.0.41";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "linuxdeepin";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-9V9B0YSUTWv/4IbTRtKJSVrZx6j8jqJxIIR9TwUZ0U0=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace libimageviewer/CMakeLists.txt --replace '/usr' '$out'
|
|
substituteInPlace libimagevisualresult/CMakeLists.txt --replace '/usr' '$out'
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
libsForQt5.qttools
|
|
libsForQt5.wrapQtAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
dtkwidget
|
|
opencv
|
|
freeimage
|
|
libmediainfo
|
|
ffmpegthumbnailer
|
|
pcre
|
|
];
|
|
|
|
cmakeFlags = [ "-DCMAKE_INSTALL_LIBDIR=lib" ];
|
|
|
|
meta = with lib; {
|
|
description = "Image editor lib for dtk";
|
|
homepage = "https://github.com/linuxdeepin/image-editor";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = teams.deepin.members;
|
|
};
|
|
}
|