Cheatsheet: Difference between revisions

Pigeon (talk | contribs)
Prefixed comments that start from beginning of line with $, to make them highlighted as comments, not as root user command
Pigeon (talk | contribs)
m Get the store path for a package: run nix-build with --no-out-link to not produce a link
Line 20: Line 20:




$ nix-build '<nixpkgs>' --no-build-output -A xorg.libXtst
$ nix-build '<nixpkgs>' --no-out-link -A xorg.libXtst
/nix/store/nlpnx21yjdjx2ii7ln4kcmbm0x1vy7w9-libXtst-1.2.3
/nix/store/nlpnx21yjdjx2ii7ln4kcmbm0x1vy7w9-libXtst-1.2.3
</syntaxhighlight>
</syntaxhighlight>