aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/hello_world.nix3
-rw-r--r--examples/simple.nix11
2 files changed, 1 insertions, 13 deletions
diff --git a/examples/hello_world.nix b/examples/hello_world.nix
index 4f9330a..f71804f 100644
--- a/examples/hello_world.nix
+++ b/examples/hello_world.nix
@@ -24,9 +24,6 @@ in {
perl = pkgs.writePerl "hello-world" {} ''
print "hello world\n";
'';
- python2 = pkgs.writePython2 "hello-world" {} ''
- print "hello world"
- '';
python3 = pkgs.writePython3 "hello-world" {} ''
print("hello world")
'';
diff --git a/examples/simple.nix b/examples/simple.nix
index 55ccedc..8f252e3 100644
--- a/examples/simple.nix
+++ b/examples/simple.nix
@@ -24,15 +24,6 @@ in {
use boolean;
print "Howdy!\n" if true;
'';
- python2 = pkgs.writePython2 "simple.py" { deps = [ pkgs.python2Packages.pyyaml ]; } ''
- import yaml
-
- print yaml.load("""
- - some
- - random
- - variables
- """)
- '';
python3 = pkgs.writePython3 "simple.py" { deps = [ pkgs.python3Packages.pyyaml ]; } ''
import yaml
@@ -40,7 +31,7 @@ in {
- some
- random
- variables
- """))
+ """, Loader=yaml.Loader))
'';
sed = pkgs.writeDash "sed-example" ''
echo hello | ${pkgs.writeSed "hello-world" "s/hello/& world/"}