Skip to content

Commit

Permalink
Toolchain: Add Toolchain/nix-profiles/ to .gitignore
Browse files Browse the repository at this point in the history
Let users save their nix develop derivation in a profile by ignoring
this specific folder. It encourages the following workflow:

```
nix develop Toolchain/ --profile Toolchain/nix-profiles/dev
```

Which stops the dev enviornment being collected in the nix store. Later
devs can come back and do:

```
nix develop Toolchain/nix-profiles/dev
```

To continue where they left off, without having to download everything
from nixpkgs again.
  • Loading branch information
Alizter authored and ADKaster committed Sep 1, 2023
1 parent 0124d73 commit f46b393
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Documentation/BuildInstructionsOther.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,18 @@ or you can use the nix flake [`Toolchain/flake.nix`](../Toolchain/serenity.nix)
nix develop Toolchain
```

You can also save this environment to a profile:

```
nix develop Toolchain --profile Toolchain/nix-profiles/dev
```

and resume later with:

```
nix develop Toolchain/nix-profiles/dev
```

## Alpine Linux

First, make sure you have enabled the `community` repository in `/etc/apk/repositories` and run `apk update`. It has been tested on `edge`, YMMV on `stable`.
Expand Down
2 changes: 2 additions & 0 deletions Toolchain/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ config-temp
config.log
# For caching the entire toolchain (useful on Travis)
Cache/
# Nix profiles can be stored here
nix-profiles/

0 comments on commit f46b393

Please sign in to comment.