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)
I just realized that the original repository disappeared, so I decided
switch to a fork[1] for now. Also, I changed the following things:
* The project got relicensed[2] to `gpl3Plus`. Unfortunately the tags are
gone, but it seems as this has happened after the 1.0 release, so no
problem for us.
* The patch for sway 1.5[3] got merged into the fork, so it doesn't have
to be applied here.
* Decided to go for `master` here for now. First of all there are no
tags anymore, also there are a few fixes on `master` now.
* Compared the new source with the old 1.0 tarball via `diff -r`. Even
though most of the changes were written by the original author on top
of 1.0, I did a diff against everything from 1.0 and didn't find any
issues. Also, `luispabon` doesn't seem to be a throw-away account so
I'd say that using this fork for now is fine.
[1] https://github.com/luispabon/wdisplays
[2] 69564522bc
[3] 5198a9c94b
Starting `wdisplays` on a NixOS 20.09 with `sway-1.5` breaks with the
following output:
```
(wdisplays:28400): Gtk-WARNING **: 10:26:38.619: Could not load a pixbuf from /org/gtk/libgtk/theme/Adwaita/assets/bullet-symbolic.svg.
This may indicate that pixbuf loaders or the mime database could not be found.
Gdk-Message: 10:26:38.752: Error reading events from display: Success
```
The first two warnings can be fixed by adding `wrapGAppsHook`. The last
error is an upstream bug that can be fixed by applying the patch from a
pending PR[1].
[1] https://github.com/cyclopsian/wdisplays/pull/20