nixpkgs/pkgs/desktops/deepin/deepin-terminal/default.nix

69 lines
1.8 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, fetchFromGitHub, pkgconfig, gtk3, vala, cmake,
ninja, vte, libgee, wnck, zssh, gettext, librsvg, libsecret,
2018-10-30 15:17:45 -07:00
json-glib, gobjectIntrospection, deepin-menu,
deepin-shortcut-viewer, deepin }:
2017-04-09 02:44:34 -07:00
stdenv.mkDerivation rec {
2018-10-30 15:17:45 -07:00
name = "${pname}-${version}";
pname = "deepin-terminal";
2018-08-31 11:54:39 -07:00
version = "3.0.3";
2017-04-09 02:44:34 -07:00
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = "deepin-terminal";
rev = version;
2018-08-31 11:54:39 -07:00
sha256 = "04yvim97a4j8fq5lq2g6svs8qs79np9m4nl6x83iv02wkb9b7gqa";
2017-04-09 02:44:34 -07:00
};
2017-12-18 19:38:26 -08:00
patches = [
# Do not build vendored zssh and vte
(fetchurl {
name = "remove-vendor.patch";
url = https://git.archlinux.org/svntogit/community.git/plain/trunk/remove-vendor.patch?h=packages/deepin-terminal&id=de701614c19c273b98b60fd6790795ff7d8a157e;
sha256 = "0g7hhvr7ay9g0cgc6qqvzhbcwvbzvrrilbn8w46ypfzj7w5hlkqv";
2017-12-18 19:38:26 -08:00
})
];
postPatch = ''
substituteInPlace ssh_login.sh --replace /usr/lib/deepin-terminal/zssh "${zssh}/bin/zssh"
2017-04-09 02:44:34 -07:00
'';
2017-10-06 13:05:01 -07:00
nativeBuildInputs = [
pkgconfig
vala
cmake
ninja
gettext
gobjectIntrospection # For setup hook
];
2018-08-31 11:54:39 -07:00
buildInputs = [
gtk3
vte
libgee
wnck
librsvg
libsecret
json-glib
deepin-menu
deepin-shortcut-viewer
];
enableParallelBuilding = true;
2017-04-09 02:44:34 -07:00
2018-10-30 15:17:45 -07:00
passthru.updateScript = deepin.updateScript { inherit name; };
2017-12-18 19:38:26 -08:00
meta = with stdenv.lib; {
2017-04-09 02:44:34 -07:00
description = "The default terminal emulation for Deepin";
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.
2017-04-09 02:44:34 -07:00
'';
2018-08-31 11:54:39 -07:00
homepage = https://github.com/linuxdeepin/deepin-terminal;
2017-12-18 19:38:26 -08:00
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = [ maintainers.romildo ];
2017-04-09 02:44:34 -07:00
};
}