Skip to content

Commit

Permalink
Nix's own flake: Dedup and memoize more
Browse files Browse the repository at this point in the history
- `nixpkgsFor` does all of native, static, cross, and the different stdenvs.

- The main Nix derivation is no longer duplicated for static.

- DRY nixpkgs.lib and lib.genAttrs calls.
  • Loading branch information
Ericson2314 authored and zimbatm committed Feb 20, 2023
1 parent 9a3f66d commit d7a4f08
Show file tree
Hide file tree
Showing 3 changed files with 113 additions and 185 deletions.
6 changes: 3 additions & 3 deletions doc/manual/src/contributing/hacking.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ This shell also adds `./outputs/bin/nix` to your `$PATH` so you can run `nix` im
To get a shell with one of the other [supported compilation environments](#compilation-environments):

```console
$ nix develop .#clang11Stdenv
$ nix develop .#native-clang11StdenvPackages
```

> **Note**
Expand Down Expand Up @@ -77,12 +77,12 @@ $ nix-shell
To get a shell with one of the other [supported compilation environments](#compilation-environments):

```console
$ nix-shell -A devShells.x86_64-linux.clang11Stdenv
$ nix-shell -A devShells.x86_64-linux.native-clang11StdenvPackages
```

> **Note**
>
> You can use `ccacheStdenv` to drastically improve rebuild time.
> You can use `native-ccacheStdenvPackages` to drastically improve rebuild time.
> By default, [ccache](https://ccache.dev) keeps artifacts in `~/.cache/ccache/`.
To build Nix itself in this shell:
Expand Down
Loading

0 comments on commit d7a4f08

Please sign in to comment.