Cheatsheet: Difference between revisions

imported>Nix
m add to Software and Cookbook categories
imported>DerickEddington
m Fix command for getting patched sources.
Line 270: Line 270:
To download the source as specified by the package recipe: <syntaxhighlight lang="bash">nix-build '<nixpkgs>' -A emacs.src</syntaxhighlight>
To download the source as specified by the package recipe: <syntaxhighlight lang="bash">nix-build '<nixpkgs>' -A emacs.src</syntaxhighlight>
The patched source is usually not a derivation itself, but can be produced for most packages with the following command: <syntaxhighlight lang="bash">nix-shell '<nixpkgs>' -A emacs\
The patched source is usually not a derivation itself, but can be produced for most packages with the following command: <syntaxhighlight lang="bash">nix-shell '<nixpkgs>' -A emacs\
  --command 'unpackPhase; patchPhase'</syntaxhighlight>
  --command 'unpackPhase; cd $sourceRoot; patchPhase'</syntaxhighlight>
|-
|-
|Compile & install a package from source
|Compile & install a package from source