nix-shell: explain the merging property close to the example

This commit is contained in:
Graham Christensen 2018-09-19 12:48:08 -04:00
parent 2ca6ef0fec
commit 10a7f19937
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C

View file

@ -317,13 +317,14 @@ while (my $token = $p->get_tag("a")) {
</para> </para>
<para>Finally, the following Haskell script uses a specific branch of <para>Finally, using the merging of multiple nix-shell shebangs the
Nixpkgs/NixOS (the 14.12 stable branch): following Haskell script uses a specific branch of Nixpkgs/NixOS (the
18.03 stable branch):
<programlisting><![CDATA[ <programlisting><![CDATA[
#! /usr/bin/env nix-shell #! /usr/bin/env nix-shell
#! nix-shell -i runghc -p haskellPackages.ghc haskellPackages.HTTP haskellPackages.tagsoup #! nix-shell -i runghc -p haskellPackages.ghc haskellPackages.HTTP haskellPackages.tagsoup
#! nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-14.12.tar.gz #! nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-18.03.tar.gz
import Network.HTTP import Network.HTTP
import Text.HTML.TagSoup import Text.HTML.TagSoup