Packaging/Tutorial: Difference between revisions

imported>Mic92
No edit summary
imported>Fadenb
Line 12: Line 12:
<li><p>Build it without changes, just to test it builds</p></li>
<li><p>Build it without changes, just to test it builds</p></li>
<li><p>Modify source URL and sha256. Don't forget about that sha256 stuff! What I do, I change last symbol of sha256, let the package fail, and then paste correct sha256 again into expression. There are also various prefetch techniques</p></li>
<li><p>Modify source URL and sha256. Don't forget about that sha256 stuff! What I do, I change last symbol of sha256, let the package fail, and then paste correct sha256 again into expression. There are also various prefetch techniques</p></li>
<li><p>Run <code>nix-shell</code> on this expression (for example: <code>nix-shell '<nixpkgs>' -A hello</code>). Then run in order:</p>
<li><p>Run <code>nix-shell</code> on this expression (for example: <syntaxhighlight lang="bash" inline>nix-shell '<nixpkgs>' -A hello</syntaxhighlight>). Then run in order:</p>
<syntaxhighlight lang="console">
<syntaxhighlight lang="console">
$ unpackPhase
$ unpackPhase