-
1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-20 | {
- inputs = {
- nixpkgs.url = "github:NixOS/nixpkgs";
- flake-utils.url = "github:numtide/flake-utils";
- };
-
- outputs = { self, nixpkgs, flake-utils }:
- flake-utils.lib.eachDefaultSystem (system:
- let
- pkgs = import nixpkgs { inherit system; };
- in
- {
- devShells = rec {
- default = pkgs.mkShell {
- packages = [ pkgs.cowsay ];
- };
- };
- }
- );
-}
+ | cat: flake.nix: No such file or directory
|
@@ -4353,22 +4327,34 @@ hello-flake
$ cowsay "Moo!"
-bash: line 17: cowsay: command not found
+bash: line 32: cowsay: command not found
$ nix develop
-$ cowsay "Moo!"
- ______
-< Moo! >
- ------
- \ ^__^
- \ (oo)\_______
- (__)\ )\/\
- ||----w |
- || ||
+path '/home/amy/codeberg/nix-book/source/recipes/devshell/tempwork' does not contain a 'flake.nix', searching up
+error: path '/home/amy/codeberg/nix-book' is not part of a flake (neither it nor its parent directories contain a 'flake.nix' file)
10.4.2. A flake
+
+ flake.nix
+
+ | cat: flake.nix: No such file or directory
+ |
+
+
+
+ Here’s a demonstration using the shell.
+
+
+
+ $ cowsay "Moo!"
+bash: line 62: cowsay: command not found
+$ nix develop
+path '/home/amy/codeberg/nix-book/source/recipes/devshell/tempwork' does not contain a 'flake.nix', searching up
+error: path '/home/amy/codeberg/nix-book' is not part of a flake (neither it nor its parent directories contain a 'flake.nix' file)
+
+
@@ -4956,7 +4942,7 @@ mkShell {
|