From be9e356e614a95e7ab839584c9d95838be1d0002 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 19 Sep 2018 13:01:27 -0400 Subject: [PATCH] nix-shell: document double quotes being necessary for a simple Nix expression in the shebang --- doc/manual/command-ref/nix-shell.xml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/doc/manual/command-ref/nix-shell.xml b/doc/manual/command-ref/nix-shell.xml index 3f12dda04..cb443c888 100644 --- a/doc/manual/command-ref/nix-shell.xml +++ b/doc/manual/command-ref/nix-shell.xml @@ -317,6 +317,20 @@ while (my $token = $p->get_tag("a")) { +Sometimes you need to pass a simple Nix expression to customize +a package like Terraform: + + + +You must use double quotes (") when +passing a simple Nix expression in a nix-shell shebang. + + 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):