mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 11:23:29 +00:00
nixos/vte: use vte without any GUI dependencies
we just need the script, borrowed from environment.noXLibs On my system this reduced the closure size by ~100MB ▶ nix path-info -Sh /nix/var/nix/profiles/system-76-link/ /nix/store/adybwlzyf3qa56irabblzlyjsr74amb9-nixos-system-francium-23.11 6.5G ▶ nix path-info -S /nix/var/nix/profiles/system-76-link/ /nix/store/adybwlzyf3qa56irabblzlyjsr74amb9-nixos-system-francium-23.11 6956572064 ▶ nix path-info -Sh /nix/var/nix/profiles/system-77-link/ /nix/store/wgs6wlq2i911q2r1n5fqbs9vzmp8qy26-nixos-system-francium-23.11 6.4G ▶ nix path-info -S /nix/var/nix/profiles/system-77-link/ /nix/store/wgs6wlq2i911q2r1n5fqbs9vzmp8qy26-nixos-system-francium-23.11 6856836056
This commit is contained in:
parent
8cd995ce13
commit
577bb277aa
@ -1,5 +1,3 @@
|
||||
# VTE
|
||||
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
with lib;
|
||||
@ -9,7 +7,7 @@ let
|
||||
vteInitSnippet = ''
|
||||
# Show current working directory in VTE terminals window title.
|
||||
# Supports both bash and zsh, requires interactive shell.
|
||||
. ${pkgs.vte}/etc/profile.d/vte.sh
|
||||
. ${pkgs.vte.override { gtkVersion = null; }}/etc/profile.d/vte.sh
|
||||
'';
|
||||
|
||||
in
|
||||
|
@ -69,6 +69,7 @@ stdenv.mkDerivation rec {
|
||||
cairo
|
||||
fribidi
|
||||
gnutls
|
||||
pango # duplicated with propagatedBuildInputs to support gtkVersion == null
|
||||
pcre2
|
||||
zlib
|
||||
icu
|
||||
@ -80,7 +81,6 @@ stdenv.mkDerivation rec {
|
||||
propagatedBuildInputs = lib.optionals (gtkVersion != null) [
|
||||
(assert (gtkVersion == "3" || gtkVersion == "4");
|
||||
if gtkVersion == "3" then gtk3 else gtk4)
|
||||
] ++ [
|
||||
glib
|
||||
pango
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user