pkgs: add writeJS{,Bin}

This commit is contained in:
2018-09-23 13:05:11 +02:00
parent 3212b4fbfb
commit 79ab2c27f9
4 changed files with 27 additions and 0 deletions

View File

@@ -18,6 +18,9 @@ in {
main = do
putStrLn "hello world"
'';
js = pkgs.writeJS "hello-world" {} ''
console.log("hello world")
'';
perl = pkgs.writePerl "hello-world" {} ''
print "hello world\n";
'';