Special-casing the fixupPhase like this seems wrong to me. Also, there is already a branch for improving multiple-output support (see https://github.com/NixOS/nixpkgs/blob/multiple-outputs/pkgs/build-support/multiple-outputs.nix) so we probably shouldn't do this in the stdenv branch right now...