---
synopsis: Fix `nix-env --query --drv-path --json`
prs: 9257
credits: [Artturin, horrors]
category: Fixes
Fixed a bug where `nix-env --query` ignored `--drv-path` when `--json` was set.