pkgs: add writePerl{,Bin}

This commit is contained in:
2018-09-12 14:57:09 +02:00
parent 368a04fec3
commit 9cd634f650
3 changed files with 24 additions and 0 deletions

View File

@@ -14,6 +14,10 @@ in {
main :: IO ()
main = print Rolf
'';
perl = pkgs.writePerl "simple.pl" { deps = [ pkgs.perlPackages.boolean ]; } ''
use boolean;
print "Howdy!\n" if true;
'';
python2 = pkgs.writePython2 "hello-world" { deps = [ pkgs.python2Packages.pyyaml ]; } ''
import yaml