mirror of
https://codeberg.org/mhwombat/nix-book.git
synced 2026-05-15 01:21:12 +08:00
temp
This commit is contained in:
parent
d351582364
commit
c6d4fff7c6
5 changed files with 100 additions and 69 deletions
|
|
@ -21,12 +21,17 @@ it's usually more convenient to use `haskell-flake` as described in <<#haskell-f
|
|||
together with the _high-level workflow_ described in <<_development_workflows>>.
|
||||
====
|
||||
|
||||
[source,nix,linenums,highlight='11,16']
|
||||
[source,nix,linenums,highlight='5,8,12,17']
|
||||
.flake.nix
|
||||
....
|
||||
include::flake.nix[]
|
||||
....
|
||||
|
||||
Line 5 adds `pandoc-columns` as an input to this flake.
|
||||
Line 8 allows the output function to reference `pandoc-columns`.
|
||||
Line 12 makes a custom GHC that knows about `pandoc-columns`,
|
||||
and line 17 uses the custom GHC as a build input for this flake.
|
||||
|
||||
Here's a short Haskell program that uses it.
|
||||
|
||||
[source,haskell,linenums]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue