/nix/store/0xbn2hi6h1m5h4kc02vwffs2cydrbc0r-hello-flake/bin/hello-flake+
$ /nix/store/qskl8ajlgnl654fhgsmv74yv8x9r3kzg-hello-flake/bin/hello-flake +Hello from your flake!
From aa6f39042ae3e0a5a1eaa13c955850881e065ab6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Amy=20de=20Buitl=C3=A9ir?=
/nix/store/0xbn2hi6h1m5h4kc02vwffs2cydrbc0r-hello-flake/bin/hello-flake+
$ /nix/store/qskl8ajlgnl654fhgsmv74yv8x9r3kzg-hello-flake/bin/hello-flake +Hello from your flake!
git push the changes until we’re ready to
$ git commit hello-flake flake.nix -m 'added bovine feature' -[main 11a8ffe] added bovine feature +[main 415788f] added bovine feature 2 files changed, 7 insertions(+), 1 deletion(-) $ nix run ________________________ @@ -3457,7 +3458,7 @@ repo, and commit all important files.$ git add flake.lock $ git commit -a -m 'initial commit' -[master (root-commit) a370ad5] initial commit +[master (root-commit) 39979dd] initial commit 5 files changed, 136 insertions(+) create mode 100644 LICENSE create mode 100644 Main.hs @@ -3854,9 +3855,6 @@ warning: creating lock file '"/home/amy/codeberg/nix-book/source/new-flake/pytho • Added input 'nixpkgs': 'github:NixOS/nixpkgs/375ab11873f71477e1e9afc240dd815d00ce05bf?narHash=sha256-WB8bx4RyG1hjt49/yafemlpImojvq/vWpVQFW0/DVjI%3D' (2025-08-19) warning: Git tree '/home/amy/codeberg/nix-book/source/new-flake/python-flake/hello-python' is dirty -this derivation will be built: - /nix/store/vnwhjlij3k1lkqxjyznh78xbsns9rpqy-hello-flake-python.drv -building '/nix/store/vnwhjlij3k1lkqxjyznh78xbsns9rpqy-hello-flake-python.drv'... Hello from inside a Python program built with a Nix flake!
$ git add flake.lock $ git commit -a -m 'initial commit' -[master (root-commit) 5e2c858] initial commit +[master (root-commit) 175745f] initial commit 4 files changed, 127 insertions(+) create mode 100644 flake.lock create mode 100644 flake.nix @@ -3886,9 +3884,6 @@ another directory and running it from there.$ cd .. $ nix run ./hello-python -this derivation will be built: - /nix/store/m96s3wx0wghysihixgv2vldfwx4zwwqb-hello-flake-python.drv -building '/nix/store/m96s3wx0wghysihixgv2vldfwx4zwwqb-hello-flake-python.drv'... Hello from inside a Python program built with a Nix flake!