[Nix-dev] nix-store --query --deriver command gives the wrong derivation?

Roger Qiu roger.qiu at polycademy.com
Sat Jul 26 11:37:07 CEST 2014


Hello

I've tried using the `nix-store --query --deriver $(which binary)` in 
order to get the path to the `.drv` file. However it never seems to give 
me the right derivation file.

For example:

```
$ nix-store --query --deriver $(which firefox)
/nix/store/x505j55hvf2si7pfpwnpj7sljjshai9d-firefox-29.0.1.drv

$ ls | grep firefox
2xzsarr6v7rscwwg4vmh4k8861ybbdpf-firefox-29.0.1
6i0lnsy8yg8r8rf0wb9ncfbzcmqj0jpx-firefox-29.0.1.drv
j4axk28ghg7as3xi570p74dgmqn9saaa-firefox-29.0.1.source.tar.bz2.drv
```

As you can see the real drv file which is 
`6i0lnsy8yg8r8rf0wb9ncfbzcmqj0jpx-firefox-29.0.1.drv` does not match the 
queried drv file: 
`/nix/store/x505j55hvf2si7pfpwnpj7sljjshai9d-firefox-29.0.1.drv`.

This happened with other binaries such as the `hello` package too.

Thanks,
Roger


More information about the nix-dev mailing list