$ git commit hello-flake flake.nix -m 'added bovine feature'
-[main d6b3d05] added bovine feature
+[main a678b41] added bovine feature
2 files changed, 7 insertions(+), 1 deletion(-)
$ nix run
________________________
@@ -1763,8 +1792,10 @@ Rather than launch another shell-within-a-shell, let’s exit create a new o
$ exit
$ nix-shell -p "[ cabal-install (haskellPackages.ghcWithPackages (pkgs: with pkgs; [ hostname ]))]"
$ cabal build
+Warning: The package list for 'hackage.haskell.org' is 19 days old.
+Run 'cabal update' to get the latest list of available packages.
Resolving dependencies...
-Build profile: -w ghc-9.4.7 -O1
+Build profile: -w ghc-9.4.8 -O1
In order, the following will be built (use -v for more details):
- hello-flake-haskell-1.0.0 (exe:hello-flake-haskell) (first run)
Configuring executable 'hello-flake-haskell' for hello-flake-haskell-1.0.0..
@@ -1776,8 +1807,8 @@ Warning: The 'license-file' field refers to the file 'LICENSE' which does not
exist.
Preprocessing executable 'hello-flake-haskell' for hello-flake-haskell-1.0.0..
Building executable 'hello-flake-haskell' for hello-flake-haskell-1.0.0..
-[1 of 1] Compiling Main ( Main.hs, /home/amy/codeberg/nix-book/source/new-flake/haskell-flake/hello-haskell/dist-newstyle/build/x86_64-linux/ghc-9.4.7/hello-flake-haskell-1.0.0/x/hello-flake-haskell/build/hello-flake-haskell/hello-flake-haskell-tmp/Main.o )
-[2 of 2] Linking /home/amy/codeberg/nix-book/source/new-flake/haskell-flake/hello-haskell/dist-newstyle/build/x86_64-linux/ghc-9.4.7/hello-flake-haskell-1.0.0/x/hello-flake-haskell/build/hello-flake-haskell/hello-flake-haskell
+[1 of 1] Compiling Main ( Main.hs, /home/amy/codeberg/nix-book/source/new-flake/haskell-flake/hello-haskell/dist-newstyle/build/x86_64-linux/ghc-9.4.8/hello-flake-haskell-1.0.0/x/hello-flake-haskell/build/hello-flake-haskell/hello-flake-haskell-tmp/Main.o )
+[2 of 2] Linking /home/amy/codeberg/nix-book/source/new-flake/haskell-flake/hello-haskell/dist-newstyle/build/x86_64-linux/ghc-9.4.8/hello-flake-haskell-1.0.0/x/hello-flake-haskell/build/hello-flake-haskell/hello-flake-haskell
$ cabal run
Hello from Haskell inside a Nix flake!
Your hostname is: wombat11k
@@ -1876,20 +1907,20 @@ warning: Git tree '/home/amy/codeberg/nix-book/source/new-flake/haskell-flake/he
warning: creating lock file '/home/amy/codeberg/nix-book/source/new-flake/haskell-flake/hello-haskell/flake.lock'
warning: Git tree '/home/amy/codeberg/nix-book/source/new-flake/haskell-flake/hello-haskell' is dirty
these 2 derivations will be built:
- /nix/store/69ndw9rm52qas5wdmi60dhiavcv8xk0l-source-hello-flake-haskell-sdist.tar.gz.drv
- /nix/store/czq5qmg6mxlzyy7zwxq84c3jg8njy6m9-hello-flake-haskell-1.0.0.drv
-building '/nix/store/69ndw9rm52qas5wdmi60dhiavcv8xk0l-source-hello-flake-haskell-sdist.tar.gz.drv'...
-error: builder for '/nix/store/69ndw9rm52qas5wdmi60dhiavcv8xk0l-source-hello-flake-haskell-sdist.tar.gz.drv' failed with exit code 1;
+ /nix/store/ckn90lz6ans1q84fkasyyjr4p4b89j4q-source-hello-flake-haskell-sdist.tar.gz.drv
+ /nix/store/yv4fbbfl1jmh4i9j6ylvg1rd9d4anc5g-hello-flake-haskell-1.0.0.drv
+building '/nix/store/ckn90lz6ans1q84fkasyyjr4p4b89j4q-source-hello-flake-haskell-sdist.tar.gz.drv'...
+error: builder for '/nix/store/ckn90lz6ans1q84fkasyyjr4p4b89j4q-source-hello-flake-haskell-sdist.tar.gz.drv' failed with exit code 1;
last 7 log lines:
- > unpacking source archive /nix/store/hhgjzgy9ly522nl99y8h6m4kl6cknfin-source-hello-flake-haskell
+ > unpacking source archive /nix/store/6w4qxvrlm1p1yhwv0kv57da7azz8y2mn-source-hello-flake-haskell
> source root is source-hello-flake-haskell
> Config file path source is default config file.
> Config file not found: /build/source-hello-flake-haskell/.config/cabal/config
> Writing default configuration to
> /build/source-hello-flake-haskell/.config/cabal/config
> /build/source-hello-flake-haskell/./LICENSE: withBinaryFile: does not exist (No such file or directory)
- For full logs, run 'nix log /nix/store/69ndw9rm52qas5wdmi60dhiavcv8xk0l-source-hello-flake-haskell-sdist.tar.gz.drv'.
-error: 1 dependencies of derivation '/nix/store/czq5qmg6mxlzyy7zwxq84c3jg8njy6m9-hello-flake-haskell-1.0.0.drv' failed to build
+ For full logs, run 'nix log /nix/store/ckn90lz6ans1q84fkasyyjr4p4b89j4q-source-hello-flake-haskell-sdist.tar.gz.drv'.
+error: 1 dependencies of derivation '/nix/store/yv4fbbfl1jmh4i9j6ylvg1rd9d4anc5g-hello-flake-haskell-1.0.0.drv' failed to build