From e627e256f4a5ac1782c8756a7c90a532ce34ee97 Mon Sep 17 00:00:00 2001 From: lassulus Date: Thu, 25 Oct 2018 10:01:35 +0200 Subject: update README.md --- README.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9fa56d0..acb953c 100644 --- a/README.md +++ b/README.md @@ -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!" + '') ]; ``` -- cgit v1.2.3