This was achieved using the following command:
sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b')
And then manually reverted the following changes:
- alias in top-level.nix
- function name in wrap-gapps-hook.sh
- comment in postFixup of at-spi2-core
- comment in gtk4
- comment in preFixup of 1password-gui/linux.nix
- comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix
- comment in postFixup of telegram-desktop
- comment in postFixup of fwupd
- buildCommand of mongodb-compass
- postFixup of xflux-gui
- comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config
- description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
Without the change build fails on upstream gcc-10 as:
ld: uget_gtk-UgtkApp-main.o:/build/uget-2.2.3/ui-gtk/UgtkBanner.h:67: multiple definition of
`banner'; uget_gtk-UgtkTraveler.o:/build/uget-2.2.3/ui-gtk/UgtkBanner.h:67: first defined here
As sourceforge does now allow easy way of extracting patches
I inlined the change as a string replacement.
Semi-automatic update generated by https://github.com/ryantm/nix-update tools. These checks were done:
- built on NixOS
- ran `/nix/store/ycadchyn77y6aqxnvp5jkhjv0nw6jqi0-uget-2.2.1/bin/uget-gtk -h` got 0 exit code
- ran `/nix/store/ycadchyn77y6aqxnvp5jkhjv0nw6jqi0-uget-2.2.1/bin/uget-gtk --help` got 0 exit code
- ran `/nix/store/ycadchyn77y6aqxnvp5jkhjv0nw6jqi0-uget-2.2.1/bin/uget-gtk -V` and found version 2.2.1
- ran `/nix/store/ycadchyn77y6aqxnvp5jkhjv0nw6jqi0-uget-2.2.1/bin/uget-gtk --version` and found version 2.2.1
- ran `/nix/store/ycadchyn77y6aqxnvp5jkhjv0nw6jqi0-uget-2.2.1/bin/uget-gtk -h` and found version 2.2.1
- ran `/nix/store/ycadchyn77y6aqxnvp5jkhjv0nw6jqi0-uget-2.2.1/bin/uget-gtk --help` and found version 2.2.1
- ran `/nix/store/ycadchyn77y6aqxnvp5jkhjv0nw6jqi0-uget-2.2.1/bin/.uget-gtk-wrapped -h` got 0 exit code
- ran `/nix/store/ycadchyn77y6aqxnvp5jkhjv0nw6jqi0-uget-2.2.1/bin/.uget-gtk-wrapped --help` got 0 exit code
- ran `/nix/store/ycadchyn77y6aqxnvp5jkhjv0nw6jqi0-uget-2.2.1/bin/.uget-gtk-wrapped -V` and found version 2.2.1
- ran `/nix/store/ycadchyn77y6aqxnvp5jkhjv0nw6jqi0-uget-2.2.1/bin/.uget-gtk-wrapped --version` and found version 2.2.1
- ran `/nix/store/ycadchyn77y6aqxnvp5jkhjv0nw6jqi0-uget-2.2.1/bin/.uget-gtk-wrapped -h` and found version 2.2.1
- ran `/nix/store/ycadchyn77y6aqxnvp5jkhjv0nw6jqi0-uget-2.2.1/bin/.uget-gtk-wrapped --help` and found version 2.2.1
- found 2.2.1 with grep in /nix/store/ycadchyn77y6aqxnvp5jkhjv0nw6jqi0-uget-2.2.1