Skip to content

Commit

Permalink
Merge pull request #839 from matthiasdebernardini/patch-1
Browse files Browse the repository at this point in the history
Update yaml-options.md with clear instructions for adding packages that aren't part of Nix packages
  • Loading branch information
domenkozar authored Oct 25, 2023
2 parents 5529446 + afa565f commit 5298ee8
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/reference/yaml-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,20 @@ imports:
!!! note "Added in 1.0"
- relative file support in imports: `./mymodule.nix`

### What if a package is out of date?
- Open [nixpkgs repo](https://github.com/NixOS/nixpkgs) and press `t` to search for your package.
- Try to update/change the package using [the nixpkgs contributing guide](https://nixos.org/manual/nixpkgs/stable/#chap-quick-start), optionally contacting the maintainer for help if you get stuck.
- Make a PR and remember the branch name.
- Add it to your devenv.yaml like so

Using the nixpkgs input in form of 'github:$GH_USERNAME/nixpkgs/master', edit `devenv.yaml`:


```yaml
inputs:
nixpkgs:
url: 'github:$GH_USERNAME/nixpkgs/MYBRANCH'
```


0 comments on commit 5298ee8

Please sign in to comment.