nixpkgs-suyu/pkgs/applications/misc/deepin-terminal/default.nix

43 lines
1.6 KiB
Nix
Raw Normal View History

2017-12-19 04:38:26 +01:00
{ stdenv, fetchurl, fetchFromGitHub, pkgconfig, gtk3, vala, cmake, vte, libgee, wnck, zssh, gettext, librsvg, libsecret, json_glib }:
2017-04-09 11:44:34 +02:00
stdenv.mkDerivation rec {
name = "deepin-terminal-${version}";
2017-12-19 04:38:26 +01:00
version = "2.9.2";
2017-04-09 11:44:34 +02:00
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = "deepin-terminal";
rev = version;
2017-12-19 04:38:26 +01:00
sha256 = "1pmg1acs44c30hz9rpr6x1l6lyvlylc2pz5lv4ai0rhv37n51yn2";
2017-04-09 11:44:34 +02:00
};
2017-12-19 04:38:26 +01: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=5baa756e8e6ac8ce43fb122fce270756cc55086c;
sha256 = "0zrq004malphpy7xv5z502bpq30ybyj1rr4hlq4k5m4fpk29dlw6";
})
];
postPatch = ''
substituteInPlace project_path.c --replace __FILE__ \"$out/share/deepin-terminal/\"
substituteInPlace ssh_login.sh --replace /usr/lib/deepin-terminal/zssh "${zssh}/bin/zssh"
2017-04-09 11:44:34 +02:00
'';
2017-10-06 22:05:01 +02:00
2017-12-19 04:38:26 +01:00
nativeBuildInputs = [ pkgconfig vala cmake gettext ];
buildInputs = [ gtk3 vte libgee wnck librsvg libsecret json_glib ];
2017-04-09 11:44:34 +02:00
2017-12-19 04:38:26 +01:00
meta = with stdenv.lib; {
2017-04-09 11:44:34 +02:00
description = "The default terminal emulation for Deepin";
longDescription = ''
2017-12-19 04:38:26 +01: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 11:44:34 +02:00
'';
homepage = https://github.com/linuxdeepin/deepin-terminal/;
2017-12-19 04:38:26 +01:00
license = licenses.gpl3;
maintainers = with maintainers; [ ];
platforms = platforms.linux;
2017-04-09 11:44:34 +02:00
};
}