$ git commit hello-flake flake.nix -m 'added bovine feature'
-[main 8572547] added bovine feature
+[main 7c75517] added bovine feature
2 files changed, 7 insertions(+), 1 deletion(-)
$ nix run
/nix/store/kds93y2fq5mwaca3d60rywz4c5xj0wqq-hello-flake/bin/hello-flake: line 3: cowsay: command not found
@@ -1694,10 +1679,9 @@ directory and create a git repository.
$ mkdir hello-python
-mkdir: cannot create directory ‘hello-python’: File exists
$ cd hello-python
$ git init
-Reinitialized existing Git repository in /home/amy/codeberg/nix-book/source/hello-python/.git/
+Initialized empty Git repository in /home/amy/codeberg/nix-book/source/hello-python/.git/
@@ -1934,7 +1918,8 @@ something like this.
$ nix run
-Hello from inside a Python program built with a Nix flake!
+warning: Git tree '/home/amy/codeberg/nix-book/source/hello-python' is dirty
+error: getting status of '/nix/store/0ccnxa25whszw7mgbgyzdm4nqc0zwnm8-source/flake.nix': No such file or directory
@@ -1946,6 +1931,9 @@ repo before building or running the flake.
$ git add flake.nix setup.py hello.py
$ nix run
+warning: Git tree '/home/amy/codeberg/nix-book/source/hello-python' is dirty
+warning: creating lock file '/home/amy/codeberg/nix-book/source/hello-python/flake.lock'
+warning: Git tree '/home/amy/codeberg/nix-book/source/hello-python' is dirty
Hello from inside a Python program built with a Nix flake!
@@ -1959,13 +1947,12 @@ repo, and commit all important files.
$ git add flake.lock
$ git commit -a -m 'initial commit'
-On branch master
-Untracked files:
- (use "git add <file>..." to include in what will be committed)
- dist/
- hello_flake_python.egg-info/
-
-nothing added to commit but untracked files present (use "git add" to track)
+[master (root-commit) 45bb306] initial commit
+ 4 files changed, 127 insertions(+)
+ create mode 100644 flake.lock
+ create mode 100644 flake.nix
+ create mode 100644 hello.py
+ create mode 100644 setup.py