2020-05-03 19:52:19 +00:00
|
|
|
{ stdenv
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkgconfig
|
|
|
|
, cmake
|
|
|
|
, deepin
|
|
|
|
, dtkcore
|
|
|
|
, dtkwidget
|
|
|
|
, kcodecs
|
|
|
|
, qttools
|
|
|
|
, syntax-highlighting
|
|
|
|
, wrapQtAppsHook
|
2019-06-27 03:32:26 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "deepin-editor";
|
|
|
|
version = "1.2.9.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0g7c3adqwn8i4ndxdrzibahr75dddz1fiqnsh3bjj1jjr86rv4ks";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkgconfig
|
|
|
|
qttools
|
|
|
|
wrapQtAppsHook
|
|
|
|
deepin.setupHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dtkcore
|
|
|
|
dtkwidget
|
|
|
|
kcodecs
|
|
|
|
syntax-highlighting
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
searchHardCodedPaths # debugging
|
|
|
|
|
|
|
|
patchShebangs translate_generation.sh
|
|
|
|
|
|
|
|
fixPath $out /usr \
|
|
|
|
CMakeLists.txt \
|
|
|
|
dedit/main.cpp \
|
|
|
|
src/resources/settings.json \
|
|
|
|
src/thememodule/themelistmodel.cpp
|
|
|
|
|
|
|
|
substituteInPlace deepin-editor.desktop \
|
|
|
|
--replace "Exec=deepin-editor" "Exec=$out/bin/deepin-editor"
|
|
|
|
|
|
|
|
substituteInPlace src/editwrapper.cpp \
|
|
|
|
--replace "appExec = \"deepin-editor\"" "appExec = \"$out/bin/deepin-editor\""
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
searchHardCodedPaths $out # debugging
|
|
|
|
'';
|
|
|
|
|
2020-05-03 20:03:55 +00:00
|
|
|
passthru.updateScript = deepin.updateScript { inherit pname version src; };
|
2019-06-27 03:32:26 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Simple editor for Deepin Desktop Environment";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/linuxdeepin/deepin-editor";
|
2019-06-27 03:32:26 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ romildo worldofpeace ];
|
|
|
|
};
|
|
|
|
}
|