You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<Admonitionwarningtitle="This could take a while"id="nix-develop-loading"client:load>
@@ -30,7 +30,7 @@ Future `nix develop` invocations should be much faster, as Nix doesn't need to b
30
30
You should be greeted by a new shell prompt, something like this:
31
31
32
32
```shell
33
-
(nix:zero-to-nix-env) bash-5.1$
33
+
(nix:zero-to-nix-env) bash-5.2$
34
34
```
35
35
36
36
:rocket:**Success**!
@@ -44,11 +44,11 @@ type git
44
44
45
45
For curl, for example, you should see a strange path like this (the hash part should be different on your machine):
46
46
47
-
<NixStorePathpkg="curl-7.86.0-bin"bin="curl" />
47
+
<NixStorePathpkg="curl-8.1.1-bin"bin="curl" />
48
48
49
49
What happened here? The [Nix] CLI did a few things:
50
50
51
-
* It used the `github:DeterminateSystems/zero-to-nix`[flake reference][flakes] to pull in some Nix code and built a specific [flake output][output] (more on this later).
51
+
* It used the `https://flakehub.com/f/DeterminateSystems/zero-to-nix/*#example`[flake reference][flakes] to pull in some Nix code and built a specific [flake output][output] (more on this later).
52
52
* It built the [packages] specified in the environment configuration (again, more on this later).
53
53
* It set up an environment with a [`PATH`][path] that enables the `git` and `curl` packages to be discovered in the [Nix store][store].
54
54
@@ -62,10 +62,10 @@ Two other things that you can provide in Nix development environments:
@@ -235,7 +235,7 @@ For more info, see [Effortless dev environments with Nix and direnv][nix-direnv]
235
235
236
236
## From a local flake \{#flake}
237
237
238
-
Earlier in this guide, we activated a Nix development environment defined in a [flake][flakes] on GitHub.
238
+
Earlier in this guide, we activated a Nix development environment defined in a [flake][flakes] on [FlakeHub].
239
239
While using an environment in this way is helpful, it's more common to use a development environment defined in a local flake in the current directory.
240
240
241
241
First, tell us which language you prefer:
@@ -374,6 +374,7 @@ Probably not what you expected! What happened here? A few things:
Here, `nixpkgs` is a [flake reference][ref] to the [NixOS/nixpkgs][nixpkgs-repo] repository on GitHub, while `#bat` indicates that we're building the `bat` output from the Nixpkgs flake.
While [Nixpkgs] is by far the largest Nix package repository in the known universe, any [Nix flake][flake] can include package [outputs]. Let's build a package from a different repo, this time the package for [Home Manager][hm], a popular Nix tool for configuring home environments:
In this command, the `nixpkgs`[flake reference][flake-ref] is shorthand for `github:NixOS/nixpkgs`.
28
-
29
27
<Admonitionwarningtitle="This could take a while"id="nix-search"client:load>
30
28
The first time you run `nix search`, the Nix CLI needs to download the full Nix code contents of [Nixpkgs]—or whichever flake you're searching—and then cache it.
31
-
Future `nix search` runs for Nixpkgs should be much speedier.
29
+
Future `nix search` runs should be much speedier.
32
30
Furthermore, Nixpkgs is the largest flake in existence and running `nix search` on other flakes should be much faster in general.
33
31
</Admonition>
34
32
@@ -67,7 +65,7 @@ The web interface at [search.nixos.org][search] has a few advantages over the [`
67
65
As an example, let's explore a popular flake for the [Wayland] window system protocol.
68
66
69
67
```shell
70
-
nix flake show github:nix-community/nixpkgs-wayland
68
+
nix flake show "github:nix-community/nixpkgs-wayland"
71
69
```
72
70
73
71
<Admonition warning title="This could take a while" id="nix-search" client:load>
0 commit comments