From 332c94e05a0dd0364c32a5e31cbfea8dcb54b315 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Fri, 11 Sep 2015 05:16:24 +0200 Subject: [PATCH] Rename module (must be called Main) --- nix-script.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nix-script.hs b/nix-script.hs index be3075d..8795a69 100755 --- a/nix-script.hs +++ b/nix-script.hs @@ -1,5 +1,5 @@ -- | A shebang for running scripts inside nix-shell with defined dependencies -module NixScript where +module Main where import Control.Monad (when) import Data.Maybe (fromMaybe) @@ -128,6 +128,7 @@ main = do (program, args) = interpreter language interactive file cmd <- makeCommand program args + putStrLn $ unwords ("--pure" : "--command" : cmd : "-p" : pkgs) callProcess "nix-shell" ("--pure" : "--command" : cmd : "-p" : pkgs) _ -> fail "missing or invalid header" \ No newline at end of file