Skip to content

Commit

Permalink
rewrite and update
Browse files Browse the repository at this point in the history
Co-authored-by: Norbert Melzer <[email protected]>
Co-authored-by: Silvan Mosberger <[email protected]>
  • Loading branch information
3 people committed Mar 15, 2024
1 parent c4c6958 commit 3c02439
Show file tree
Hide file tree
Showing 6 changed files with 191 additions and 134 deletions.
6 changes: 3 additions & 3 deletions source/guides/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ See <https://github.com/nix-community/home-manager>

### What's the recommended process for building custom packages?

Please read [](packaging-existing-software).
Please read [](packaging-tutorial).

### How to use a clone of the Nixpkgs repository to update or write new packages?

Please read [](packaging-existing-software) and the [Nixpkgs contributing guide](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md).
Please read [](packaging-tutorial) and the [Nixpkgs contributing guide](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md).

## NixOS

Expand All @@ -69,7 +69,7 @@ There are a few ways to resolve this mismatch in environment expectations:
- Build from source.

Many open-source programs are highly flexible at compile time in terms of where their files go.
For an introduction to this, see [](../tutorials/packaging-existing-software).
For an introduction to this, see [](packaging-tutorial).
- Modify the program's [ELF header](https://en.wikipedia.org/wiki/Executable_and_Linkable_Format) to include paths to libraries using [`autoPatchelfHook`](https://nixos.org/manual/nixpkgs/stable/#setup-hook-autopatchelfhook).

Do this if building from source isn't feasible.
Expand Down
2 changes: 1 addition & 1 deletion source/guides/recipes/python-environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Others can now use the same shell environment as long as they have [Nix installe

## Next steps

- [](packaging-existing-software)
- [](packaging-tutorial)
- [](file-sets-tutorial)
- [](automatic-direnv)
- [](./dependency-management.md)
4 changes: 2 additions & 2 deletions source/guides/recipes/sharing-dependencies.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(sharing-dependencies)=
# Dependencies in the development shell

When [packaging software in `default.nix`](packaging-existing-software), you'll want a [development environment in `shell.nix`](declarative-reproducible-envs) to enter it conveniently with `nix-shell` or [automatically with `direnv`](./direnv).
When [packaging software in `default.nix`](packaging-tutorial), you'll want a [development environment in `shell.nix`](declarative-reproducible-envs) to enter it conveniently with `nix-shell` or [automatically with `direnv`](./direnv).

How to share the package's dependencies in `default.nix` with the development environment in `shell.nix`?

Expand Down Expand Up @@ -109,4 +109,4 @@ $ nix-shell --pure
- [](pinning-nixpkgs)
- [](./direnv)
- [](python-dev-environment)
- [](packaging-existing-software)
- [](packaging-tutorial)
Loading

0 comments on commit 3c02439

Please sign in to comment.