diff options
author | lassulus <lassulus@lassul.us> | 2018-10-25 10:01:35 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2018-10-27 13:17:34 +0200 |
commit | e627e256f4a5ac1782c8756a7c90a532ce34ee97 (patch) | |
tree | 4f374e278a229650290f25e4b109a0756f8efe7e /README.md | |
parent | 582dceee4db7a13cf73216c9e85276c126fe34ff (diff) |
update README.md
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -33,17 +33,23 @@ once you've included the nix-writers as overlay you can use the scripts to creat environment.systemPackages = with pkgs; [ # Haskell example - (writeHaskell "nix-writers-example-haskell" { - executables."nix-writers-example-haskell".text = ''main = print "this is a writeHaskell example"''; + (writeHaskellPackage "nix-writers-example-haskell" { + executables."nix-writers-example-haskell".text = '' + main = print "this is a writeHaskell example" + ''; }) # C example (writeC "nix-writers-example-c" { destination = "/bin/nix-writers-example-c"; - } ''int main() { printf("this is a writeC example!\n"); }'') + } '' + int main() { printf("this is a writeC example!\n"); } + '') # Dash example - (writeDashBin "nix-writers-example-dash" ''echo "this is a writeDash example!"'') + (writeDashBin "nix-writers-example-dash" '' + echo "this is a writeDash example!" + '') ]; ``` |