aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2018-09-23 12:45:48 +0200
committerlassulus <lassulus@lassul.us>2018-09-23 12:45:48 +0200
commitb36e2e0127d3f607e8e7c8840aea10d7aee32b7f (patch)
treef0afa96edeb40af45e72157af46db86be1c97c79
parent16b43f218d142de49fbd8fae77e6e2c057bfb9d6 (diff)
examples/simple: more descriptive names
-rw-r--r--examples/simple.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/simple.nix b/examples/simple.nix
index ad62b84..e93b54e 100644
--- a/examples/simple.nix
+++ b/examples/simple.nix
@@ -1,14 +1,14 @@
let
pkgs = import <nixpkgs> { 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.hs" [ "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("""