Merge pull request #213911 from wineee/deditor
deepin.deepin-editor: init at 5.10.35
This commit is contained in:
commit
7e957f03a7
83
pkgs/desktops/deepin/apps/deepin-editor/default.nix
Normal file
83
pkgs/desktops/deepin/apps/deepin-editor/default.nix
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
{ stdenv
|
||||||
|
, lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
|
, dtkwidget
|
||||||
|
, qt5integration
|
||||||
|
, qt5platform-plugins
|
||||||
|
, dde-qt-dbus-factory
|
||||||
|
, cmake
|
||||||
|
, pkg-config
|
||||||
|
, qttools
|
||||||
|
, qtbase
|
||||||
|
, qtsvg
|
||||||
|
, wrapQtAppsHook
|
||||||
|
, kcodecs
|
||||||
|
, syntax-highlighting
|
||||||
|
, libchardet
|
||||||
|
, libuchardet
|
||||||
|
, libiconv
|
||||||
|
, gtest
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "deepin-editor";
|
||||||
|
version = "5.10.35";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "linuxdeepin";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "sha256-X3tsmtqMUSpYQZqCmgtCLCSGwzSmCZagF7TUWQYJsqU=";
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
name = "chore: use GNUInstallDirs in CmakeLists";
|
||||||
|
url = "https://github.com/linuxdeepin/deepin-editor/commit/7f4314f386a3c8f5cdea3618591b8eb027d034c3.patch";
|
||||||
|
sha256 = "sha256-/aSBa2nILc/YrFchUyhBHHs2c7Mv6N1juwD5Sdc39Uo=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace src/common/utils.h --replace "/usr/share" "$out/share"
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
cmake
|
||||||
|
pkg-config
|
||||||
|
qttools
|
||||||
|
wrapQtAppsHook
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
qtbase
|
||||||
|
qtsvg
|
||||||
|
dtkwidget
|
||||||
|
qt5platform-plugins
|
||||||
|
dde-qt-dbus-factory
|
||||||
|
kcodecs
|
||||||
|
syntax-highlighting
|
||||||
|
libchardet
|
||||||
|
libuchardet
|
||||||
|
libiconv
|
||||||
|
gtest
|
||||||
|
];
|
||||||
|
|
||||||
|
strictDeps = true;
|
||||||
|
|
||||||
|
cmakeFlags = [ "-DVERSION=${version}" ];
|
||||||
|
|
||||||
|
# qt5integration must be placed before qtsvg in QT_PLUGIN_PATH
|
||||||
|
qtWrapperArgs = [
|
||||||
|
"--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A desktop text editor that supports common text editing features";
|
||||||
|
homepage = "https://github.com/linuxdeepin/deepin-editor";
|
||||||
|
license = licenses.gpl3Plus;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = teams.deepin.members;
|
||||||
|
};
|
||||||
|
}
|
@ -22,6 +22,7 @@ let
|
|||||||
|
|
||||||
#### Dtk Application
|
#### Dtk Application
|
||||||
deepin-calculator = callPackage ./apps/deepin-calculator { };
|
deepin-calculator = callPackage ./apps/deepin-calculator { };
|
||||||
|
deepin-editor = callPackage ./apps/deepin-editor { };
|
||||||
deepin-terminal = callPackage ./apps/deepin-terminal { };
|
deepin-terminal = callPackage ./apps/deepin-terminal { };
|
||||||
|
|
||||||
#### ARTWORK
|
#### ARTWORK
|
||||||
|
Loading…
Reference in New Issue
Block a user