Build result not available in nix-shell

I have a cargo project converted to nix derivation using rustPlatform.buildRustPackage.
When I nix-build it, the executable gets outputted to result/bin/<name> and runs fine, but when I run nix-shell <package> the executable is not even in PATH. Adding it as a buildDependency to another package also does not work, although nix-env -if . works and adds the executable to PATH.