Skip to content

Commit f42e55d

Browse files
author
IOHK
committed
Update gh-pages for b943bca
1 parent 5da02a8 commit f42e55d

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

print.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1476,23 +1476,23 @@ <h2 id="custom"><a class="header" href="#custom">Custom</a></h2>
14761476
<h2 id="from-a-stackage-snapshot"><a class="header" href="#from-a-stackage-snapshot">From a <a href="https://stackage.org">Stackage</a> snapshot</a></h2>
14771477
<p>To build a package, say <a href="https://hackage.haskell.org/package/lens">lens</a>, from a Stackage snapshot, say
14781478
<a href="https://www.stackage.org/lts-13.28">lts-13.28</a>, you could run:</p>
1479-
<pre><code class="language-shell">nix build '(with import &lt;nixpkgs&gt; (import (builtins.fetchTarball &quot;https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz&quot;) {}).nixpkgsArgs; haskell-nix.snapshots.&quot;lts-13.28&quot;).lens.components.library'
1479+
<pre><code class="language-shell">nix-build -E '(with import &lt;nixpkgs&gt; (import (builtins.fetchTarball &quot;https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz&quot;) {}).nixpkgsArgs; haskell-nix.snapshots.&quot;lts-13.28&quot;).lens.components.library'
14801480
</code></pre>
14811481
<p>This would build the (public) library component of the <a href="https://hackage.haskell.org/package/lens">lens</a> package as
14821482
fixed by the <a href="https://www.stackage.org/lts-13.28">lts-13.28</a> stackage snapshot. Nightly snapshots like
14831483
<code>nightly-2020-06-21</code> are also available.</p>
14841484
<h2 id="a-specific-version-from-hackage"><a class="header" href="#a-specific-version-from-hackage">A specific version from Hackage</a></h2>
14851485
<p>To build any package from hackage, say <a href="https://hackage.haskell.org/package/lens">lens</a>, at any version, say 4.17.1,
14861486
you could run:</p>
1487-
<pre><code class="language-shell">nix build '(with import &lt;nixpkgs&gt; (import (builtins.fetchTarball &quot;https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz&quot;) {}).nixpkgsArgs; (haskell-nix.hackage-package { name = &quot;lens&quot;; version = &quot;4.17.1&quot;; compiler-nix-name = &quot;ghc8102&quot;; })).components.library'
1487+
<pre><code class="language-shell">nix-build -E '(with import &lt;nixpkgs&gt; (import (builtins.fetchTarball &quot;https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz&quot;) {}).nixpkgsArgs; (haskell-nix.hackage-package { name = &quot;lens&quot;; version = &quot;4.17.1&quot;; compiler-nix-name = &quot;ghc8102&quot;; })).components.library'
14881488
</code></pre>
14891489
<p>This would build the (public) library component of the <a href="https://hackage.haskell.org/package/lens-4.17.1">lens-4.17.1</a> package
14901490
from hackage.</p>
14911491
<h3 id="pinning-hackage-index"><a class="header" href="#pinning-hackage-index">Pinning hackage index</a></h3>
14921492
<p>The dependencies would be resolved against the most recent
14931493
<a href="https://github.com/input-output-hk/hackage.nix/blob/master/index-state-hashes.nix">hackage-index-state</a> which comes with your <a href="https://github.com/input-output-hk/haskell.nix">haskell.nix</a> checkout via the
14941494
<a href="https://github.com/input-output-hk/hackage.nix">hackage.nix</a> pin. A specific one can be specified as well:</p>
1495-
<pre><code class="language-shell">nix build '(with import &lt;nixpkgs&gt; (import (builtins.fetchTarball &quot;https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz&quot;) {}).nixpkgsArgs; (haskell-nix.hackage-package { name = &quot;lens&quot;; version = &quot;4.17.1&quot;; compiler-nix-name = &quot;ghc8102&quot;; index-state = &quot;2019-07-14T00:00:00Z&quot;; })).components.library'
1495+
<pre><code class="language-shell">nix-build -E '(with import &lt;nixpkgs&gt; (import (builtins.fetchTarball &quot;https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz&quot;) {}).nixpkgsArgs; (haskell-nix.hackage-package { name = &quot;lens&quot;; version = &quot;4.17.1&quot;; compiler-nix-name = &quot;ghc8102&quot;; index-state = &quot;2019-07-14T00:00:00Z&quot;; })).components.library'
14961496
</code></pre>
14971497
<p>This would use the hackage index as of <code>2019-07-14T00:00:00Z</code> to produce a
14981498
build plan for the <a href="https://hackage.haskell.org/package/lens-4.17.1">lens-4.17.1</a> package.</p>

searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

searchindex.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

tutorials/building-package-from-stackage-hackage.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,23 +138,23 @@ <h1 id="build-a-specific-package-from-hackage-or-stackage"><a class="header" hre
138138
<h2 id="from-a-stackage-snapshot"><a class="header" href="#from-a-stackage-snapshot">From a <a href="https://stackage.org">Stackage</a> snapshot</a></h2>
139139
<p>To build a package, say <a href="https://hackage.haskell.org/package/lens">lens</a>, from a Stackage snapshot, say
140140
<a href="https://www.stackage.org/lts-13.28">lts-13.28</a>, you could run:</p>
141-
<pre><code class="language-shell">nix build '(with import &lt;nixpkgs&gt; (import (builtins.fetchTarball &quot;https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz&quot;) {}).nixpkgsArgs; haskell-nix.snapshots.&quot;lts-13.28&quot;).lens.components.library'
141+
<pre><code class="language-shell">nix-build -E '(with import &lt;nixpkgs&gt; (import (builtins.fetchTarball &quot;https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz&quot;) {}).nixpkgsArgs; haskell-nix.snapshots.&quot;lts-13.28&quot;).lens.components.library'
142142
</code></pre>
143143
<p>This would build the (public) library component of the <a href="https://hackage.haskell.org/package/lens">lens</a> package as
144144
fixed by the <a href="https://www.stackage.org/lts-13.28">lts-13.28</a> stackage snapshot. Nightly snapshots like
145145
<code>nightly-2020-06-21</code> are also available.</p>
146146
<h2 id="a-specific-version-from-hackage"><a class="header" href="#a-specific-version-from-hackage">A specific version from Hackage</a></h2>
147147
<p>To build any package from hackage, say <a href="https://hackage.haskell.org/package/lens">lens</a>, at any version, say 4.17.1,
148148
you could run:</p>
149-
<pre><code class="language-shell">nix build '(with import &lt;nixpkgs&gt; (import (builtins.fetchTarball &quot;https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz&quot;) {}).nixpkgsArgs; (haskell-nix.hackage-package { name = &quot;lens&quot;; version = &quot;4.17.1&quot;; compiler-nix-name = &quot;ghc8102&quot;; })).components.library'
149+
<pre><code class="language-shell">nix-build -E '(with import &lt;nixpkgs&gt; (import (builtins.fetchTarball &quot;https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz&quot;) {}).nixpkgsArgs; (haskell-nix.hackage-package { name = &quot;lens&quot;; version = &quot;4.17.1&quot;; compiler-nix-name = &quot;ghc8102&quot;; })).components.library'
150150
</code></pre>
151151
<p>This would build the (public) library component of the <a href="https://hackage.haskell.org/package/lens-4.17.1">lens-4.17.1</a> package
152152
from hackage.</p>
153153
<h3 id="pinning-hackage-index"><a class="header" href="#pinning-hackage-index">Pinning hackage index</a></h3>
154154
<p>The dependencies would be resolved against the most recent
155155
<a href="https://github.com/input-output-hk/hackage.nix/blob/master/index-state-hashes.nix">hackage-index-state</a> which comes with your <a href="https://github.com/input-output-hk/haskell.nix">haskell.nix</a> checkout via the
156156
<a href="https://github.com/input-output-hk/hackage.nix">hackage.nix</a> pin. A specific one can be specified as well:</p>
157-
<pre><code class="language-shell">nix build '(with import &lt;nixpkgs&gt; (import (builtins.fetchTarball &quot;https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz&quot;) {}).nixpkgsArgs; (haskell-nix.hackage-package { name = &quot;lens&quot;; version = &quot;4.17.1&quot;; compiler-nix-name = &quot;ghc8102&quot;; index-state = &quot;2019-07-14T00:00:00Z&quot;; })).components.library'
157+
<pre><code class="language-shell">nix-build -E '(with import &lt;nixpkgs&gt; (import (builtins.fetchTarball &quot;https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz&quot;) {}).nixpkgsArgs; (haskell-nix.hackage-package { name = &quot;lens&quot;; version = &quot;4.17.1&quot;; compiler-nix-name = &quot;ghc8102&quot;; index-state = &quot;2019-07-14T00:00:00Z&quot;; })).components.library'
158158
</code></pre>
159159
<p>This would use the hackage index as of <code>2019-07-14T00:00:00Z</code> to produce a
160160
build plan for the <a href="https://hackage.haskell.org/package/lens-4.17.1">lens-4.17.1</a> package.</p>

0 commit comments

Comments
 (0)