mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02: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, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
@ -9,7 +7,7 @@ let
|
||||||
vteInitSnippet = ''
|
vteInitSnippet = ''
|
||||||
# Show current working directory in VTE terminals window title.
|
# Show current working directory in VTE terminals window title.
|
||||||
# Supports both bash and zsh, requires interactive shell.
|
# 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
|
in
|
||||||
|
|
|
@ -69,6 +69,7 @@ stdenv.mkDerivation rec {
|
||||||
cairo
|
cairo
|
||||||
fribidi
|
fribidi
|
||||||
gnutls
|
gnutls
|
||||||
|
pango # duplicated with propagatedBuildInputs to support gtkVersion == null
|
||||||
pcre2
|
pcre2
|
||||||
zlib
|
zlib
|
||||||
icu
|
icu
|
||||||
|
@ -80,7 +81,6 @@ stdenv.mkDerivation rec {
|
||||||
propagatedBuildInputs = lib.optionals (gtkVersion != null) [
|
propagatedBuildInputs = lib.optionals (gtkVersion != null) [
|
||||||
(assert (gtkVersion == "3" || gtkVersion == "4");
|
(assert (gtkVersion == "3" || gtkVersion == "4");
|
||||||
if gtkVersion == "3" then gtk3 else gtk4)
|
if gtkVersion == "3" then gtk3 else gtk4)
|
||||||
] ++ [
|
|
||||||
glib
|
glib
|
||||||
pango
|
pango
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue