1
0
mirror of https://github.com/bennofs/nix-script synced 2025-01-10 12:54:20 +01:00

Fix dependecies definitions

This commit is contained in:
rnhmjoj 2015-08-30 14:01:30 +00:00
parent 14c4b916ba
commit 2ca72ad03d

View File

@ -43,22 +43,19 @@ haskell = LangDef "haskell" d r i where
python :: LangDef python :: LangDef
python = LangDef "python" d r i where python = LangDef "python" d r i where
d pkgs = return $ d pkgs = "python" : map ("pythonPackages." <>) pkgs
Text.unwords (map ("pythonPackages." <>) pkgs)
r script = ("python" , [script]) r script = ("python" , [script])
i script = ("python" , ["-i", script]) i script = ("python" , ["-i", script])
javascript :: LangDef javascript :: LangDef
javascript = LangDef "javascript" d r i where javascript = LangDef "javascript" d r i where
d pkgs = return $ d pkgs = "node" : map ("nodePackages." <>) pkgs
Text.unwords (map ("nodePackages." <>) pkgs)
r script = ("node" , [script]) r script = ("node" , [script])
i script = ("node" , []) i script = ("node" , [])
perl :: LangDef perl :: LangDef
perl = LangDef "perl" d r i where perl = LangDef "perl" d r i where
d pkgs = return $ d pkgs = "perl" : map ("perlPackages." <>) pkgs
Text.unwords (map ("perlPackages." <>) pkgs)
r script = ("perl" , [script]) r script = ("perl" , [script])
i script = ("perl" , ["-d", script]) i script = ("perl" , ["-d", script])