2020-05-03 12:52:19 -07:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkgconfig
|
|
|
|
, cmake
|
|
|
|
, ninja
|
|
|
|
, vala_0_40
|
|
|
|
, fetchpatch
|
|
|
|
, gettext
|
|
|
|
, at-spi2-core
|
|
|
|
, dbus
|
|
|
|
, epoxy
|
|
|
|
, expect
|
|
|
|
, gtk3
|
|
|
|
, json-glib
|
|
|
|
, libXdmcp
|
|
|
|
, libgee
|
|
|
|
, libpthreadstubs
|
|
|
|
, librsvg
|
|
|
|
, libsecret
|
|
|
|
, libtasn1
|
|
|
|
, libxcb
|
|
|
|
, libxkbcommon
|
|
|
|
, p11-kit
|
|
|
|
, pcre
|
|
|
|
, vte
|
|
|
|
, wnck
|
|
|
|
, libselinux
|
|
|
|
, gnutls
|
|
|
|
, pcre2
|
|
|
|
, libsepol
|
|
|
|
, utillinux
|
|
|
|
, deepin-menu
|
|
|
|
, deepin-shortcut-viewer
|
|
|
|
, deepin
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
2017-04-09 02:44:34 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-10-30 15:17:45 -07:00
|
|
|
pname = "deepin-terminal";
|
2019-11-11 17:08:39 -08:00
|
|
|
version = "5.0.0";
|
2017-04-09 02:44:34 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = "deepin-terminal";
|
|
|
|
rev = version;
|
2019-11-11 17:08:39 -08:00
|
|
|
sha256 = "1929saj828b438d07caw3cjhqq60v6gni7mi3fqrg9wdjz81xwv7";
|
2017-04-09 02:44:34 -07:00
|
|
|
};
|
|
|
|
|
2020-04-03 16:29:06 -07:00
|
|
|
patches = [
|
|
|
|
# Fix build with VTE 0.60
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/linuxdeepin/deepin-terminal/commit/542d1035b609698ee81aa7971d20ca8e5930743d.patch";
|
|
|
|
sha256 = "1pihiy70yc25fm5fx7i7v9gmi65v4mhldvi7xwv8rgr2z6hbfj41";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2017-12-13 03:31:14 -08:00
|
|
|
nativeBuildInputs = [
|
2018-09-04 04:45:16 -07:00
|
|
|
pkgconfig
|
|
|
|
cmake
|
|
|
|
ninja
|
2019-11-11 17:08:39 -08:00
|
|
|
vala_0_40 # xcb.vapi:411.3-411.48: error: missing return statement at end of subroutine body
|
2018-09-04 04:45:16 -07:00
|
|
|
gettext
|
2018-11-27 09:23:56 -08:00
|
|
|
libselinux libsepol utillinux # required by gio
|
|
|
|
deepin.setupHook
|
2019-07-21 19:53:18 -07:00
|
|
|
wrapGAppsHook
|
2017-12-13 03:31:14 -08:00
|
|
|
];
|
2018-08-31 11:54:39 -07:00
|
|
|
|
2018-09-04 04:45:16 -07:00
|
|
|
buildInputs = [
|
2018-10-30 17:16:20 -07:00
|
|
|
at-spi2-core
|
|
|
|
dbus
|
|
|
|
deepin-menu
|
|
|
|
deepin-shortcut-viewer
|
|
|
|
epoxy
|
|
|
|
expect
|
2018-09-04 04:45:16 -07:00
|
|
|
gtk3
|
2018-10-30 17:16:20 -07:00
|
|
|
json-glib
|
|
|
|
libXdmcp
|
2018-09-04 04:45:16 -07:00
|
|
|
libgee
|
2018-10-30 17:16:20 -07:00
|
|
|
libpthreadstubs
|
2018-09-04 04:45:16 -07:00
|
|
|
librsvg
|
|
|
|
libsecret
|
2018-10-30 17:16:20 -07:00
|
|
|
libtasn1
|
|
|
|
libxcb
|
|
|
|
libxkbcommon
|
|
|
|
p11-kit
|
|
|
|
pcre
|
|
|
|
vte
|
|
|
|
wnck
|
2019-09-17 00:50:31 -07:00
|
|
|
gnutls
|
|
|
|
pcre2
|
2018-09-04 04:45:16 -07:00
|
|
|
];
|
|
|
|
|
2018-10-30 17:16:20 -07:00
|
|
|
postPatch = ''
|
2018-11-27 09:23:56 -08:00
|
|
|
searchHardCodedPaths
|
2018-10-30 17:16:20 -07:00
|
|
|
'';
|
|
|
|
|
2018-11-27 09:23:56 -08:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DTEST_BUILD=OFF"
|
|
|
|
"-DUSE_VENDOR_LIB=OFF"
|
|
|
|
"-DVERSION=${version}"
|
|
|
|
];
|
2017-04-09 02:44:34 -07:00
|
|
|
|
2019-12-04 01:20:00 -08:00
|
|
|
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
|
2018-10-30 15:17:45 -07:00
|
|
|
|
2017-12-18 19:38:26 -08:00
|
|
|
meta = with stdenv.lib; {
|
2018-11-27 09:23:56 -08:00
|
|
|
description = "Default terminal emulator for Deepin";
|
2017-04-09 02:44:34 -07:00
|
|
|
longDescription = ''
|
2017-12-18 19:38:26 -08:00
|
|
|
Deepin terminal, it sharpens your focus in the world of command line!
|
2018-08-31 11:54:39 -07:00
|
|
|
It is an advanced terminal emulator with workspace, multiple
|
|
|
|
windows, remote management, quake mode and other features.
|
2020-05-03 12:52:19 -07:00
|
|
|
'';
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/linuxdeepin/deepin-terminal";
|
2017-12-18 19:38:26 -08:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
2018-09-03 19:06:56 -07:00
|
|
|
maintainers = [ maintainers.romildo ];
|
2017-04-09 02:44:34 -07:00
|
|
|
};
|
|
|
|
}
|