import recipes: todo add to site
This commit is contained in:
parent
3e4932f921
commit
33de49464e
10 changed files with 160 additions and 0 deletions
31
todo-recipes/nix.md
Normal file
31
todo-recipes/nix.md
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
# Nix
|
||||
|
||||
A very nice package management system with some confusing command syntax.
|
||||
|
||||
## Investigate a derivation
|
||||
|
||||
[nix-diff](https://github.com/Gabriel439/nix-diff) can be used to find why
|
||||
derivations are different.
|
||||
|
||||
```
|
||||
nix-diff /nix/store/...-a.drv /nix/store/...-b.drv
|
||||
```
|
||||
|
||||
Find the derivation for a given nix store path:
|
||||
|
||||
```
|
||||
nix-store -q --deriver /nix/store/...-name-0.0.0
|
||||
```
|
||||
|
||||
Dump a derivation as JSON:
|
||||
|
||||
```
|
||||
nix show-derivation /nix/store/...-a.drv
|
||||
```
|
||||
|
||||
Find why a derivation has a dependency:
|
||||
|
||||
```
|
||||
nix why-depends -a -f default.nix 'attrnameHere' 'theDepAttrName'
|
||||
```
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue