Skip to content

Commit

Permalink
nix-shell: explain the merging property close to the example
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamc committed Sep 19, 2018
1 parent 2ca6ef0 commit 10a7f19
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doc/manual/command-ref/nix-shell.xml
Original file line number Diff line number Diff line change
Expand Up @@ -317,13 +317,14 @@ while (my $token = $p->get_tag("a")) {

</para>

<para>Finally, the following Haskell script uses a specific branch of
Nixpkgs/NixOS (the 14.12 stable branch):
<para>Finally, using the merging of multiple nix-shell shebangs the
following Haskell script uses a specific branch of Nixpkgs/NixOS (the
18.03 stable branch):

<programlisting><![CDATA[
#! /usr/bin/env nix-shell
#! 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 Text.HTML.TagSoup
Expand Down

0 comments on commit 10a7f19

Please sign in to comment.