This rewrites uses of stdenv.hostPlatform == stdenv.buildPlatform to stdenv.buildPlatform.canExecute stdenv.hostPlatform when guarding postInstall scripts that use $out/bin/… to generate shell completions
env
Related to https://github.com/NixOS/nixpkgs/pull/292043