Update pkgs/waterfox-bin/default.nix

This commit is contained in:
암냥 2026-03-19 10:32:45 +00:00
commit ca8e32046a

View file

@ -145,7 +145,6 @@ stdenv.mkDerivation (finalAttrs: {
cp -r . $out/opt/waterfox
makeWrapper $out/opt/waterfox/waterfox-bin $out/bin/waterfox \
--set GTK_IM_MODULE gtk-im-context-simple \
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath finalAttrs.buildInputs}"
cp ${desktopItem}/share/applications/* $out/share/applications/
@ -160,6 +159,12 @@ stdenv.mkDerivation (finalAttrs: {
runHook postInstall
'';
preFixup = ''
gappsWrapperArgs+=(
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH:$out/share"
)
''
postInstall = ''
find $out/opt/waterfox -type f -name "*.so" -exec sh -c '
if patchelf --print-interpreter "{}" >/dev/null 2>&1; then