-
| cat: flake.nix: No such file or directory
+ 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 ];
+ };
+ };
+ }
+ );
+}
|
@@ -4327,8 +4365,17 @@ hello-flake
$ cowsay "Moo!"
-bash: line 30: cowsay: command not found
-bash: line 31: ../../../../start-shell: No such file or directory
+bash: line 17: cowsay: command not found
+$ nix develop
+$ cowsay "Moo!"
+ ______
+< Moo! >
+ ------
+ \ ^__^
+ \ (oo)\_______
+ (__)\ )\/\
+ ||----w |
+ || ||
@@ -4387,13 +4434,10 @@ bash: line 31: ../../../../start-shell: No such file or directory
$ hello-flake
-bash: line 24: hello-flake: command not found
+bash: line 17: hello-flake: command not found
$ nix develop
-error: Path 'source/recipes/devshell' in the repository "/home/amy/codeberg/nix-book" is not tracked by Git.
-
- To make it visible to Nix, run:
-
- git -C "/home/amy/codeberg/nix-book" add "source/recipes/devshell"
+$ hello-flake
+Hello from your flake!
@@ -4968,7 +5012,7 @@ mkShell {
|