about summary refs log tree commit diff
path: root/pkgs/desktops/deepin/deepin-terminal
diff options
context:
space:
mode:
authorJosé Romildo Malaquias <malaquias@gmail.com>2018-03-01 09:53:56 -0300
committerJosé Romildo Malaquias <malaquias@gmail.com>2018-03-01 09:53:56 -0300
commitc0a27fb0059837155ad3e04d8747eedfffa8e0a7 (patch)
tree0e5118ba8322a026845c6b9871a0b5f2c9beb58b /pkgs/desktops/deepin/deepin-terminal
parent6717617247b4e8a436d714fb31de06b28f909622 (diff)
downloadnixlib-c0a27fb0059837155ad3e04d8747eedfffa8e0a7.tar
nixlib-c0a27fb0059837155ad3e04d8747eedfffa8e0a7.tar.gz
nixlib-c0a27fb0059837155ad3e04d8747eedfffa8e0a7.tar.bz2
nixlib-c0a27fb0059837155ad3e04d8747eedfffa8e0a7.tar.lz
nixlib-c0a27fb0059837155ad3e04d8747eedfffa8e0a7.tar.xz
nixlib-c0a27fb0059837155ad3e04d8747eedfffa8e0a7.tar.zst
nixlib-c0a27fb0059837155ad3e04d8747eedfffa8e0a7.zip
deepin-terminal: move to deepin meta package
Diffstat (limited to 'pkgs/desktops/deepin/deepin-terminal')
-rw-r--r--pkgs/desktops/deepin/deepin-terminal/default.nix46
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/desktops/deepin/deepin-terminal/default.nix b/pkgs/desktops/deepin/deepin-terminal/default.nix
new file mode 100644
index 000000000000..8e64fa698058
--- /dev/null
+++ b/pkgs/desktops/deepin/deepin-terminal/default.nix
@@ -0,0 +1,46 @@
+{ stdenv, fetchurl, fetchFromGitHub, pkgconfig, gtk3, vala, cmake, vte, libgee, wnck, zssh, gettext, librsvg, libsecret, json-glib, gobjectIntrospection }:
+
+stdenv.mkDerivation rec {
+  name = "deepin-terminal-${version}";
+  version = "2.9.2";
+
+  src = fetchFromGitHub {
+    owner = "linuxdeepin";
+    repo = "deepin-terminal";
+    rev = version;
+    sha256 = "1pmg1acs44c30hz9rpr6x1l6lyvlylc2pz5lv4ai0rhv37n51yn2";
+  };
+
+  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"
+  '';
+
+  nativeBuildInputs = [
+    pkgconfig vala cmake gettext
+    # For setup hook
+    gobjectIntrospection
+  ];
+  buildInputs = [ gtk3 vte libgee wnck librsvg libsecret json-glib ];
+
+  meta = with stdenv.lib; {
+    description = "The default terminal emulation for Deepin";
+    longDescription = ''
+      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.
+     '';
+    homepage = https://github.com/linuxdeepin/deepin-terminal/;
+    license = licenses.gpl3;
+    maintainers = with maintainers; [ ];
+    platforms = platforms.linux;
+  };
+}