2018-06-19 14:02:23 +01:00
|
|
|
{ stdenv, fetchurl, fetchFromGitHub, pkgconfig, gtk3, vala, cmake, ninja, vte, libgee, wnck, zssh, gettext, librsvg, libsecret, json-glib, gobjectIntrospection }:
|
2017-04-09 10:44:34 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "deepin-terminal-${version}";
|
2018-06-19 14:02:23 +01:00
|
|
|
version = "3.0.0";
|
2017-04-09 10:44:34 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = "deepin-terminal";
|
|
|
|
rev = version;
|
2018-06-19 14:02:23 +01:00
|
|
|
sha256 = "11f2yc0fj05lwhgvdrbrs8xsdm7qgp6wb5wd1f9iyc5nxn7ccl1r";
|
2017-04-09 10:44:34 +01:00
|
|
|
};
|
|
|
|
|
2017-12-19 03:38:26 +00:00
|
|
|
patches = [
|
|
|
|
# Do not build vendored zssh and vte
|
|
|
|
(fetchurl {
|
|
|
|
name = "remove-vendor.patch";
|
2018-06-19 14:02:23 +01:00
|
|
|
url = https://git.archlinux.org/svntogit/community.git/plain/trunk/remove-vendor.patch?h=packages/deepin-terminal&id=de701614c19c273b98b60fd6790795ff7d8a157e;
|
|
|
|
sha256 = "0g7hhvr7ay9g0cgc6qqvzhbcwvbzvrrilbn8w46ypfzj7w5hlkqv";
|
2017-12-19 03:38:26 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace ssh_login.sh --replace /usr/lib/deepin-terminal/zssh "${zssh}/bin/zssh"
|
2017-04-09 10:44:34 +01:00
|
|
|
'';
|
2017-10-06 21:05:01 +01:00
|
|
|
|
2017-12-13 11:31:14 +00:00
|
|
|
nativeBuildInputs = [
|
2018-06-19 14:02:23 +01:00
|
|
|
pkgconfig vala cmake ninja gettext
|
2017-12-13 11:31:14 +00:00
|
|
|
# For setup hook
|
|
|
|
gobjectIntrospection
|
|
|
|
];
|
2018-02-25 02:23:58 +00:00
|
|
|
buildInputs = [ gtk3 vte libgee wnck librsvg libsecret json-glib ];
|
2017-04-09 10:44:34 +01:00
|
|
|
|
2017-12-19 03:38:26 +00:00
|
|
|
meta = with stdenv.lib; {
|
2017-04-09 10:44:34 +01:00
|
|
|
description = "The default terminal emulation for Deepin";
|
|
|
|
longDescription = ''
|
2017-12-19 03:38:26 +00:00
|
|
|
Deepin terminal, it sharpens your focus in the world of command line!
|
|
|
|
It is an advanced terminal emulator with workspace, multiple windows, remote management, quake mode and other features.
|
2017-04-09 10:44:34 +01:00
|
|
|
'';
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.com/linuxdeepin/deepin-terminal/;
|
2017-12-19 03:38:26 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
platforms = platforms.linux;
|
2017-04-09 10:44:34 +01:00
|
|
|
};
|
|
|
|
}
|