From 9018deab6c4242e3747f6b0831cc59c9dddaed99 Mon Sep 17 00:00:00 2001 From: Brian McKenna Date: Mon, 7 Dec 2015 11:31:26 +1100 Subject: [PATCH] Use shellwords for nix-shell shebang Previously we can't have quoted arguments. This now allows us to use things like `ghcWithPackages` --- scripts/nix-build.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/nix-build.in b/scripts/nix-build.in index 0a4431681..ea099532b 100755 --- a/scripts/nix-build.in +++ b/scripts/nix-build.in @@ -6,6 +6,7 @@ use Nix::Config; use Nix::Store; use Nix::Utils; use File::Basename; +use Text::ParseWords; use Cwd; binmode STDERR, ":encoding(utf8)"; @@ -56,7 +57,7 @@ if ($runEnv && defined $ARGV[0] && $ARGV[0] !~ /nix-shell/) { while (