From 3212b4fbfb6fff4a1f133b9e18b84f298c6da65d Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 23 Sep 2018 12:45:48 +0200 Subject: examples/simple: more descriptive names --- examples/simple.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'examples') diff --git a/examples/simple.nix b/examples/simple.nix index ad62b84..0284bf1 100644 --- a/examples/simple.nix +++ b/examples/simple.nix @@ -1,14 +1,14 @@ let pkgs = import { overlays = [ (import ../pkgs) ]; }; in { - bash = pkgs.writeBash "hello-world" '' + bash = pkgs.writeBash "simple.sh" '' if [[ "test" == "test" ]]; then echo "bash features"; fi ''; # cc -L/nix/store/...blah/lib -I/nix/store/...blah/include - dash = pkgs.writeDash "hello-world" '' + dash = pkgs.writeDash "simple" '' test '~' = '~' && echo 'dash features' ''; - haskell = pkgs.writeHaskell "hello-world" [ "acme-cuteboy" ] '' + haskell = pkgs.writeHaskell "simple" [ "acme-cuteboy" ] '' import Acme.CuteBoy main :: IO () @@ -18,7 +18,7 @@ in { use boolean; print "Howdy!\n" if true; ''; - python2 = pkgs.writePython2 "hello-world" { deps = [ pkgs.python2Packages.pyyaml ]; } '' + python2 = pkgs.writePython2 "simple.py" { deps = [ pkgs.python2Packages.pyyaml ]; } '' import yaml print yaml.load(""" @@ -27,7 +27,7 @@ in { - variables """) ''; - python3 = pkgs.writePython3 "hello-world" { deps = [ pkgs.python3Packages.pyyaml ]; } '' + python3 = pkgs.writePython3 "simple.py" { deps = [ pkgs.python3Packages.pyyaml ]; } '' import yaml print(yaml.load(""" -- cgit v1.2.3