Skip to content

Commit ff0d8b0

Browse files
author
IOHK
committed
Update gh-pages for d54e282
1 parent d6f713e commit ff0d8b0

File tree

4 files changed

+32
-4
lines changed

4 files changed

+32
-4
lines changed

print.html

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,6 +921,20 @@ <h3 id="nixpkgs-overlay"><a class="header" href="#nixpkgs-overlay">Nixpkgs overl
921921
})
922922
];
923923
</code></pre>
924+
<p>The user can map package(s) in Nixpkgs to a <code>pkgconfig-depends</code> name by
925+
overlaying the <code>haskell-nix.extraPkgconfigMappings</code> attribute:</p>
926+
<pre><code class="language-nix">nixpkgs.overlays = [
927+
(self: super: {
928+
haskell-nix = super.haskell-nix // {
929+
extraPkgconfigMappings = super.haskell-nix.extraPkgconfigMappings // {
930+
# String pkgconfig-depends names are mapped to lists of Nixpkgs
931+
# package names
932+
&quot;SDL_gpu&quot; = [ &quot;SDL_gpu&quot; ];
933+
};
934+
};
935+
})
936+
];
937+
</code></pre>
924938
<h3 id="replace-libraries-of-components"><a class="header" href="#replace-libraries-of-components">Replace libraries of components</a></h3>
925939
<p>If a component is missing a dependency it can be added via modules. For example:</p>
926940
<pre><code class="language-nix">project = pkgs.haskell-nix.project' {
@@ -947,7 +961,7 @@ <h3 id="mapping-in-haskellnix"><a class="header" href="#mapping-in-haskellnix">M
947961
— for <code>build-tool-depends</code>, <code>frameworks</code>, <code>extra-libraries</code>, etc.</p>
948962
<p>Each name can be mapped to:</p>
949963
<ol>
950-
<li>A single package from nixkpgs.</li>
964+
<li>A single package from nixpkgs.</li>
951965
<li><code>null</code> — eliminates the dependency</li>
952966
<li>A list of packages — sometimes needed for dependencies such as <code>X11</code>.</li>
953967
</ol>

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/pkg-map.html

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,20 @@ <h3 id="nixpkgs-overlay"><a class="header" href="#nixpkgs-overlay">Nixpkgs overl
159159
})
160160
];
161161
</code></pre>
162+
<p>The user can map package(s) in Nixpkgs to a <code>pkgconfig-depends</code> name by
163+
overlaying the <code>haskell-nix.extraPkgconfigMappings</code> attribute:</p>
164+
<pre><code class="language-nix">nixpkgs.overlays = [
165+
(self: super: {
166+
haskell-nix = super.haskell-nix // {
167+
extraPkgconfigMappings = super.haskell-nix.extraPkgconfigMappings // {
168+
# String pkgconfig-depends names are mapped to lists of Nixpkgs
169+
# package names
170+
&quot;SDL_gpu&quot; = [ &quot;SDL_gpu&quot; ];
171+
};
172+
};
173+
})
174+
];
175+
</code></pre>
162176
<h3 id="replace-libraries-of-components"><a class="header" href="#replace-libraries-of-components">Replace libraries of components</a></h3>
163177
<p>If a component is missing a dependency it can be added via modules. For example:</p>
164178
<pre><code class="language-nix">project = pkgs.haskell-nix.project' {
@@ -185,7 +199,7 @@ <h3 id="mapping-in-haskellnix"><a class="header" href="#mapping-in-haskellnix">M
185199
— for <code>build-tool-depends</code>, <code>frameworks</code>, <code>extra-libraries</code>, etc.</p>
186200
<p>Each name can be mapped to:</p>
187201
<ol>
188-
<li>A single package from nixkpgs.</li>
202+
<li>A single package from nixpkgs.</li>
189203
<li><code>null</code> — eliminates the dependency</li>
190204
<li>A list of packages — sometimes needed for dependencies such as <code>X11</code>.</li>
191205
</ol>

0 commit comments

Comments
 (0)