Nix (command): Difference between revisions
imported>IgorM m Fixed syntax highlighting |
import from old wiki |
||
Line 50: | Line 50: | ||
<syntaxHighlight lang=console> | <syntaxHighlight lang=console> | ||
$ rm -rf /nix/var/nix/profiles/per-user/$USER/profile | $ rm -rf /nix/var/nix/profiles/per-user/$USER/profile | ||
</syntaxHighlight> | |||
== New equivalents to old commands == | |||
<syntaxHighlight lang=console> | |||
# create a store derivation for a package defined in the current directory's default.nix | |||
old$ nix-instantiate -A somepackage | |||
# assumes you are now using flakes | |||
new$ nix eval .#somepackage.drvPath | |||
# alternative option | |||
new$ nix derivation show .#somepackage | jq '.[keys[0]]' | nix derivation add | |||
</syntaxHighlight> | </syntaxHighlight> | ||
[[Category:Nix]] | [[Category:Nix]] |