mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
user-local config.nix path fixed in docs
This commit is contained in:
parent
f06f4a0728
commit
0f86046db5
@ -710,7 +710,7 @@ nix-env -if build.nix
|
||||
```
|
||||
Now you can use the Python interpreter, as well as the extra packages that you added to the environment.
|
||||
|
||||
#### Environment defined in `~/.nixpkgs/config.nix`
|
||||
#### Environment defined in `~/.config/nixpkgs/config.nix`
|
||||
|
||||
If you prefer to, you could also add the environment as a package override to the Nixpkgs set.
|
||||
```nix
|
||||
|
@ -1,7 +1,7 @@
|
||||
# idea: provide a build environments for your developement of preference
|
||||
/*
|
||||
#### examples of use: ####
|
||||
# Add this to your ~/.nixpkgs/config.nix:
|
||||
# Add this to your ~/.config/nixpkgs/config.nix:
|
||||
{
|
||||
packageOverrides = pkgs : with pkgs; {
|
||||
sdlEnv = pkgs.myEnvFun {
|
||||
@ -22,7 +22,7 @@
|
||||
##### Another example, more complicated but achieving more: #######
|
||||
# Make an environment to build nix from source and create ctags (tagfiles can
|
||||
# be extracted from TAG_FILES) from every source package. Here would be a
|
||||
# full ~/.nixpkgs/config.nix
|
||||
# full ~/.config/nixpkgs/config.nix
|
||||
{
|
||||
packageOverrides = pkgs : with pkgs; with sourceAndTags;
|
||||
let complicatedMyEnv = { name, buildInputs ? [], cTags ? [], extraCmds ? ""}:
|
||||
|
Loading…
Reference in New Issue
Block a user