We are migrating packages that meet below requirements:
1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration
The tool is here: https://github.com/Aleksanaa/by-name-migrate.
Envoy 1.32 has added some more dependencies on rules_rust bits, so we
need to support that now.
In particular, for some reason, we always fail with a message about
needing repinning, so we repin during the IFD phase, but we need to
point rules_rust at the nixpkgs Rust toolchain, make it build the
cargo-bazel tool (because the one in nixpkgs is the wrong version), and
then clean up afterwards.
https://hydra.nixos.org/build/274565015/nixlog/1
`pcre` is no longer needed as the comment longer applies.
`glib-2.0.pc` now has `libsysprof-capture-4` in `Requires.private` field.
Normally, this does not matter since we patch our `pkg-config` to ignore that
outside of static builds but `entangle` was using `pkgconf`, which is not patched.
Let’s switch to standard `pkg-config`.
This will also allow us to clean some more dependencies.
Unfortunately, this also reveals issue with an underspecified `gio-unix-2.0` dependency so we need to fix that.
sed -i 's/ webkitgtk\b/ webkitgtk_4_0/g' pkgs/**.nix
sed -i 's/(webkitgtk\b/(webkitgtk_4_0/g' pkgs/**.nix
sed -i 's/\.webkitgtk\b/.webkitgtk_4_0/g' pkgs/**.nix
webkitgtk is currently pointing to that specific ABI version but the
alias is going to start warning