`lib.getExe` and `lib.getExe'` are not safe

I have one derivation that has three executables and I’m looking to create writeShellApplications derivations, one for each of the executable.