mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +03:00
Merge pull request #1104 from meatcar/gtk-icons-fix
nix: use wrapGAppsHook to package ghostty
This commit is contained in:
1
.envrc
1
.envrc
@ -1,5 +1,6 @@
|
|||||||
# If we are a computer with nix-shell available, then use that to setup
|
# If we are a computer with nix-shell available, then use that to setup
|
||||||
# the build environment with exactly what we need.
|
# the build environment with exactly what we need.
|
||||||
if has nix; then
|
if has nix; then
|
||||||
|
watch_file nix/{devShell,package,wraptest}.nix
|
||||||
use flake
|
use flake
|
||||||
fi
|
fi
|
||||||
|
@ -31,6 +31,8 @@
|
|||||||
glib,
|
glib,
|
||||||
gtk4,
|
gtk4,
|
||||||
libadwaita,
|
libadwaita,
|
||||||
|
gnome,
|
||||||
|
hicolor-icon-theme,
|
||||||
harfbuzz,
|
harfbuzz,
|
||||||
libpng,
|
libpng,
|
||||||
libGL,
|
libGL,
|
||||||
@ -142,4 +144,12 @@ in
|
|||||||
# This should be set onto the rpath of the ghostty binary if you want
|
# This should be set onto the rpath of the ghostty binary if you want
|
||||||
# it to be "portable" across the system.
|
# it to be "portable" across the system.
|
||||||
LD_LIBRARY_PATH = lib.makeLibraryPath rpathLibs;
|
LD_LIBRARY_PATH = lib.makeLibraryPath rpathLibs;
|
||||||
|
|
||||||
|
# On Linux we need to setup the environment so that all GTK data
|
||||||
|
# is available (namely icons).
|
||||||
|
shellHook = lib.optionalString stdenv.isLinux ''
|
||||||
|
# Minimal subset of env set by wrapGAppsHook4 for icons and global settings
|
||||||
|
export XDG_DATA_DIRS=$XDG_DATA_DIRS:${hicolor-icon-theme}/share:${gnome.adwaita-icon-theme}/share
|
||||||
|
export XDG_DATA_DIRS=$XDG_DATA_DIRS:$GSETTINGS_SCHEMAS_PATH # from glib setup hook
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
glib,
|
glib,
|
||||||
gtk4,
|
gtk4,
|
||||||
libadwaita,
|
libadwaita,
|
||||||
|
wrapGAppsHook4,
|
||||||
|
gsettings-desktop-schemas,
|
||||||
git,
|
git,
|
||||||
ncurses,
|
ncurses,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
@ -89,6 +91,7 @@ in
|
|||||||
ncurses
|
ncurses
|
||||||
pkg-config
|
pkg-config
|
||||||
zig012Hook
|
zig012Hook
|
||||||
|
wrapGAppsHook4
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
@ -113,6 +116,7 @@ in
|
|||||||
libadwaita
|
libadwaita
|
||||||
gtk4
|
gtk4
|
||||||
glib
|
glib
|
||||||
|
gsettings-desktop-schemas
|
||||||
];
|
];
|
||||||
|
|
||||||
dontConfigure = true;
|
dontConfigure = true;
|
||||||
|
Reference in New Issue
Block a user