Currently, a full store path has to be provided to search in builds. This patch permits to search jobs with a output path or derivation hash.
Usecase: we are building Docker images with Hydra. The tag of the Docker image is the hash of the image output path. This patch would allow us to find back the build job from the tag of a running container image.
E7OGIRKLEKZXSSFAO3Z6DSZJ5X5YNPMA2KBLCPJ4YBFAWCVXSB2AC