When copying generic-nix to generic-cmake.nix, an explicit configurePhase was added, but it doesn't use the existing configureFlags. Fixing this allowed removing the postBuild fixup of the path to libgdiplus.so, since the --with-libgdiplus option already handles that.