From c74bbc29ce7b026ea4a34450b3e106eda2f118a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Thu, 20 Nov 2025 18:10:33 +0100 Subject: [PATCH] nixos/vte: build without app --- nixos/modules/config/vte.nix | 7 ++++++- pkgs/by-name/vt/vte/package.nix | 8 ++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/nixos/modules/config/vte.nix b/nixos/modules/config/vte.nix index f7c639b627a0..8ed746d4966d 100644 --- a/nixos/modules/config/vte.nix +++ b/nixos/modules/config/vte.nix @@ -9,7 +9,12 @@ let vteInitSnippet = '' # Show current working directory in VTE terminals window title. # Supports both bash and zsh, requires interactive shell. - . ${pkgs.vte.override { gtkVersion = null; }}/etc/profile.d/vte.sh + . ${ + pkgs.vte.override { + withApp = false; + gtkVersion = null; + } + }/etc/profile.d/vte.sh ''; in diff --git a/pkgs/by-name/vt/vte/package.nix b/pkgs/by-name/vt/vte/package.nix index f41fa5c581f6..0468b6f91a51 100644 --- a/pkgs/by-name/vt/vte/package.nix +++ b/pkgs/by-name/vt/vte/package.nix @@ -34,6 +34,7 @@ nixosTests, blackbox-terminal, darwinMinVersionHook, + withApp ? true, }: stdenv.mkDerivation (finalAttrs: { @@ -71,6 +72,12 @@ stdenv.mkDerivation (finalAttrs: { url = "https://gitlab.gnome.org/GNOME/vte/-/commit/f672ed15a88dd3e25c33aa0a5ef6f6d291a6d5c7.patch"; hash = "sha256-JdLDild5j7marvR5n2heW9YD00+bwzJIoxDlzO5r/6w="; }) + + # Add option to not build the vte application + (fetchpatch { + url = "https://github.com/GNOME/vte/commit/6b7a6a7df9df99368b7ce5ac5903bd2578167567.patch"; + hash = "sha256-s3HigfTZLtGmsZS6dfD3YE95ZdBjB4WOWDvuoatOu3o="; + }) ]; nativeBuildInputs = [ @@ -118,6 +125,7 @@ stdenv.mkDerivation (finalAttrs: { mesonFlags = [ "-Ddocs=true" + (lib.mesonBool "app" withApp) (lib.mesonBool "gtk3" (gtkVersion == "3")) (lib.mesonBool "gtk4" (gtkVersion == "4")) (lib.mesonBool "_systemd" (!systemdSupport))