3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/deepin/deepin-terminal/default.nix

118 lines
2.2 KiB
Nix
Raw Normal View History

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