1
0
mirror of https://github.com/bennofs/nix-script synced 2025-01-10 04:44:21 +01:00

Use new perl.withPackages

This commit is contained in:
Michele Guerini Rocco 2019-09-19 17:31:57 +02:00
parent 15c9d337ae
commit b28f58eeee
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

@ -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])