From 2ca72ad03dfad8ede47b22229d2d97203925f7e9 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Sun, 30 Aug 2015 14:01:30 +0000 Subject: [PATCH] Fix dependecies definitions --- nix-script.hs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/nix-script.hs b/nix-script.hs index b30e71e..3bf3afd 100755 --- a/nix-script.hs +++ b/nix-script.hs @@ -43,22 +43,19 @@ haskell = LangDef "haskell" d r i where python :: LangDef python = LangDef "python" d r i where - d pkgs = return $ - Text.unwords (map ("pythonPackages." <>) pkgs) + d pkgs = "python" : map ("pythonPackages." <>) pkgs r script = ("python" , [script]) i script = ("python" , ["-i", script]) javascript :: LangDef javascript = LangDef "javascript" d r i where - d pkgs = return $ - Text.unwords (map ("nodePackages." <>) pkgs) + d pkgs = "node" : map ("nodePackages." <>) pkgs r script = ("node" , [script]) i script = ("node" , []) perl :: LangDef perl = LangDef "perl" d r i where - d pkgs = return $ - Text.unwords (map ("perlPackages." <>) pkgs) + d pkgs = "perl" : map ("perlPackages." <>) pkgs r script = ("perl" , [script]) i script = ("perl" , ["-d", script])