Skip to content

Commit

Permalink
vte-ng: move inside termite
Browse files Browse the repository at this point in the history
It is just a few patches only needed by termite. Let's not pollute our tree with it.
  • Loading branch information
jtojnar committed Oct 2, 2019
1 parent 880fab1 commit b8ab859
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 65 deletions.
40 changes: 37 additions & 3 deletions pkgs/applications/misc/termite/default.nix
@@ -1,6 +1,40 @@
{ stdenv, fetchFromGitHub, fetchpatch, pkgconfig, vte-ng, gtk3, ncurses, wrapGAppsHook }:
{ stdenv, fetchFromGitHub, fetchpatch, pkgconfig, vte, gtk3, ncurses, pcre2, wrapGAppsHook }:

stdenv.mkDerivation rec {
let

# termite requires VTE with some internals exposed
# https://github.com/thestinger/vte-ng
vte-ng = vte.overrideAttrs (attrs: {
patches = attrs.patches or [] ++ [
(fetchpatch {
name = "0001-expose-functions-for-pausing-unpausing-output.patch";
url = "https://github.com/thestinger/vte-ng/commit/342e26574f50dcd40bbeaad9e839c2a6144d0c1c.patch";
sha256 = "1b0k9ys545q85vfki417p21kis9f36yd0hyp12phayynss6fn715";
})
(fetchpatch {
name = "0002-expose-function-for-setting-cursor-position.patch";
url = "https://github.com/thestinger/vte-ng/commit/5ae3acb69474fe5bc43767a4a3625e9ed23607a1.patch";
sha256 = "091sb44g2pl0zbxnxidpfmsqqc65dmkakhjb0wvlnsjckqalhs89";
})
(fetchpatch {
name = "0003-add-function-for-setting-the-text-selections.patch";
url = "https://github.com/thestinger/vte-ng/commit/742d57ecf15e24f6a5f2133a81b6c70acc8ff03c.patch";
sha256 = "12rq3svbj1nzridbssxsvmmb8njky3w8qdnkymz7850b3kqg277x";
})
(fetchpatch {
name = "0004-add-functions-to-get-set-block-selection-mode.patch";
url = "https://github.com/thestinger/vte-ng/commit/08748fd9cb82bd191e5c476b1682ca71f7732572.patch";
sha256 = "1cnhd8f7ywdgcyd6xmcd2nn39jjxzkxp4d0zsj2k7m5v74nhcs1g";
})
(fetchpatch {
name = "0005-expose-function-for-getting-the-selected-text.patch";
url = "https://github.com/thestinger/vte-ng/commit/dd74ae7c06e8888af2fc090ac6f8920a9d8227fb.patch";
sha256 = "0pbnbkwqxm4p9xsgvqwayvh8srk5z1kyjnigmahf9mlqn7hi6v27";
})
];
});

in stdenv.mkDerivation rec {
pname = "termite";
version = "15";

Expand All @@ -24,7 +58,7 @@ stdenv.mkDerivation rec {

makeFlags = [ "VERSION=v${version}" "PREFIX=" "DESTDIR=$(out)" ];

buildInputs = [ vte-ng gtk3 ncurses ];
buildInputs = [ vte-ng gtk3 ncurses pcre2 ];

nativeBuildInputs = [ wrapGAppsHook pkgconfig ];

Expand Down
2 changes: 1 addition & 1 deletion pkgs/desktops/gnome-3/default.nix
Expand Up @@ -338,7 +338,7 @@ lib.makeScope pkgs.newScope (self: with self; {
inherit (pkgs) atk glib gobject-introspection gspell webkitgtk gtk3 gtkmm3
libgtop libgudev libhttpseverywhere librsvg libsecret gdk_pixbuf gtksourceview gtksourceviewmm gtksourceview4
easytag meld orca rhythmbox shotwell gnome-usage
clutter clutter-gst clutter-gtk cogl gtk-vnc libdazzle libgda libgit2-glib libgxps libgdata libgepub libcroco libpeas libgee geocode-glib libgweather librest libzapojit libmediaart gfbgraph gexiv2 folks totem-pl-parser gcr gsound libgnomekbd vte vte_290 vte-ng gnome-menus gdl;
clutter clutter-gst clutter-gtk cogl gtk-vnc libdazzle libgda libgit2-glib libgxps libgdata libgepub libcroco libpeas libgee geocode-glib libgweather librest libzapojit libmediaart gfbgraph gexiv2 folks totem-pl-parser gcr gsound libgnomekbd vte vte_290 gnome-menus gdl;
inherit (pkgs) gsettings-desktop-schemas; # added 2019-04-16
inherit (pkgs) gnome-video-effects; # added 2019-08-19
inherit (pkgs) gnome-online-accounts grilo grilo-plugins tracker tracker-miners gnome-photos; # added 2019-08-23
Expand Down
59 changes: 0 additions & 59 deletions pkgs/development/libraries/vte/ng.nix

This file was deleted.

2 changes: 0 additions & 2 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -14035,8 +14035,6 @@ in

vte_290 = callPackage ../development/libraries/vte/2.90.nix { };

vte-ng = callPackage ../development/libraries/vte/ng.nix { };

vtk = callPackage ../development/libraries/vtk {
inherit (darwin) libobjc;
inherit (darwin.apple_sdk.libs) xpc;
Expand Down

0 comments on commit b8ab859

Please sign in to comment.