From b28f58eeeefb10843d0adb5f9aef72a791c1d2e7 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Thu, 19 Sep 2019 17:31:57 +0200 Subject: [PATCH] Use new perl.withPackages --- nix-script.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nix-script.hs b/nix-script.hs index 4d7c8d1..7c0a893 100755 --- a/nix-script.hs +++ b/nix-script.hs @@ -64,7 +64,8 @@ languages = [haskell, python 2, python 3, javascript, perl, shell] i script = ("node" , []) perl = Language "perl" d r i where - d pkgs = "perl" : map ("perlPackages." ++) pkgs + d pkgs = pure ("perl.withPackages (pl: with pl; [" ++ + unwords pkgs ++ "])") r script = ("perl" , [script]) i script = ("perl" , ["-d", script])