Skip to content

Commit

Permalink
docs/packages: add how to find a specific file
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar authored Oct 6, 2023
1 parent 05e2694 commit bd859ef
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,22 @@ Found 3 packages and 0 options for 'ncdu'.

This will search [available packages](https://search.nixos.org/packages?channel=unstable&query=ncdu)
for the exact pinned version of Nixpkgs input in your ``devenv.lock``.

## Searching for a file

If you'd like to see what package includes a specific file, for example `libquadmath.so`:

```shell-session
$ nix run github:mic92/nix-index-database libquadmath.so
(rPackages.RcppEigen.out) 302,984 x /nix/store/24r9jkqyf2nd5dlg1jyihfl82sa9nwwb-gfortran-12.3.0-lib/lib/libquadmath.so.0.0.0
(zsnes2.out) 693,200 x /nix/store/z23qmfjaj5p50n3iki7zkjjgjzia16v1-gcc-12.3.0-lib/lib/libquadmath.so.0.0.0
(zulip.out) 0 s /nix/store/xnlcrrg3b9fgwry6qh3fxk3hnb0whs5z-zulip-5.10.2-usr-target/lib/libquadmath.so.0.0.0
(zulip.out) 0 s /nix/store/xnlcrrg3b9fgwry6qh3fxk3hnb0whs5z-zulip-5.10.2-usr-target/lib64/libquadmath.so.0.0.0
(zulip.out) 0 s /nix/store/48dnfgadck1mzncy002cs1a9hpddmdmz-zulip-5.10.2-fhs/usr/lib/libquadmath.so.0.0.0
(zettlr-beta.out) 0 s /nix/store/nlq9rpakv852kkm7lwhzgb8iap1izpdm-zettlr-beta-3.0.0-beta.7-fhs/usr/lib/libquadmath.so.0.0.0
(zettlr-beta.out) 0 s /nix/store/8ypzmv66kvi6qrdlga9yg60gl396n7ny-zettlr-beta-3.0.0-beta.7-usr-target/lib/libquadmath.so.0.0.0
(zettlr-beta.out) 0 s /nix/store/8ypzmv66kvi6qrdlga9yg60gl396n7ny-zettlr-beta-3.0.0-beta.7-usr-target/lib64/libquadmath.so.0.0.0
(zettlr.out) 0 s /nix/store/5xq9qch1fnknn3z97wcdvcf5vgjfm2ip-zettlr-2.3.0-fhs/usr/lib/libquadmath.so.0.0.0
(zecwallet-lite.out) 0 s /nix/store/rllm8zagppnjf4kh14drwwg93gsxwaja-zecwallet-lite-1.8.8-fhs/usr/lib/libquadmath.so.0.0.0
...
```

0 comments on commit bd859ef

Please sign in to comment.