1
0
Fork 0
mirror of https://github.com/NixOS/nix.dev.git synced 2024-10-18 14:32:43 -04:00
Commit graph

36 commits

Author SHA1 Message Date
Anderson Torres 25593bf292 [chore] fix broken links
Because CI is not happy.
2024-06-29 03:50:16 +02:00
Anderson Torres 72a834a278 dependency-management.md: update niv references
`niv` is not exactly unmaintained - the most recent commit is from less than two
months ago. Let's rewrite this in a more neutral manner.
2024-06-29 03:50:16 +02:00
Anderson Torres 76d7323762 dependency-management.md: remove small typo referring to niv 2024-06-29 03:50:16 +02:00
Valentin Gagarin 27e9e6dd07
fix up wording on post-build-hook guide (#993)
- the title was misleading, because the guide is more about hooks than S3
binary caches.
- pointed Nix manual links to a fixed version
- one sentence per line
- linked the guide on configuring a binary cache
2024-06-25 10:26:08 +00:00
Eli Flanagan 03ece9d353
minor python-environment.md improvement (#995)
I noticed #993 mentions the one sentence per line convention. I found one line in `python-environment.md` that should follow that.
2024-06-11 11:33:07 +02:00
Valentin Gagarin 143d6c0b35
add guide on post build hook (#528)
* add guide on post build hook

originally written under LGPL 2.1 for the Nix reference manual.
authors as recorded in the Nix repository:

    git log --pretty="Co-authored-by: %an <%ae>" -- doc/manual/advanced-topics/post-build-hook.xml doc/manual/src/advanced-topics/post-build-hook.md | sort | uniq

relicenced with authors' permission to CC-BY-SA 4.0: https://github.com/NixOS/nix.dev/issues/463

Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
Co-authored-by: Graham Christensen <graham@grahamc.com>
Co-authored-by: Ellie Hermaszewska <git@monoid.al>
Co-authored-by: Kevin Stock <kevin@kevinstock.org>
Co-authored-by: endgame <endgame@users.noreply.github.com>
Co-authored-by: regnat <rg@regnat.ovh>

* WIP: reword, reformat, fix links

* rebase 528 onto current master, move recipe to correct directory

* fix header case to make vale happy

* fix links after moving from nix repo

* slight rewordings for clarity

Co-authored-by: wamirez <wamirez@protonmail.com>
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>

---------

Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
Co-authored-by: Graham Christensen <graham@grahamc.com>
Co-authored-by: Ellie Hermaszewska <git@monoid.al>
Co-authored-by: Kevin Stock <kevin@kevinstock.org>
Co-authored-by: endgame <endgame@users.noreply.github.com>
Co-authored-by: regnat <rg@regnat.ovh>
Co-authored-by: alex <source@proof.construction>
Co-authored-by: wamirez <wamirez@protonmail.com>
2024-06-03 23:14:18 -07:00
Valentin Gagarin 966af44eec
fix typo (#992) 2024-06-03 11:40:24 +02:00
Valentin Gagarin bfa0c7de86
migrate from niv to npins (#991) 2024-06-03 09:50:23 +02:00
Daniel Ramírez cbf8083d55
Move "How do I add a new binary cache?" FAQ to Nix recipes (#833)
* Update the recipe on adding a binary cache

Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2024-05-14 22:32:44 +02:00
Manuel Thalmann 4b72c64e1b
Fix Typos (#973) 2024-04-29 14:44:03 +00:00
Anderson Torres 6fe9e53ccd best-practices: add a new tip for rec 2024-04-24 23:50:50 +02:00
Valentin Gagarin ca88130dce rewrite and update
Co-authored-by: Norbert Melzer <timmelzer@gmail.com>
Co-authored-by: Silvan Mosberger <github@infinisil.com>
2024-03-19 04:25:24 +01:00
Carl Thomé ea54d9dbd1 sharing-dependencies: callpackage -> callPackage 2024-03-07 15:23:26 +01:00
Kian Mehrabani be84270c4e
fix typo 2024-02-28 01:27:18 -05:00
Aaron Honeycutt 58b5a525c2
update examples to latest release of 23.11 (#913)
update examples to latest release of 23.11

Co-authored-by: Henrik <i97henka@gmail.com>
Co-authored-by: Silvan Mosberger <github@infinisil.com>
2024-02-27 02:48:44 +01:00
Valentin Gagarin 61c5b0f88e change file sets tutorial URL to match document title
this solves a weird interaction with automatically generated section IDs
where the section heading is the same as the file name.
2024-02-24 18:09:07 +01:00
Valentin Gagarin 29c2065001 link to the Nix reference manual on string interpolation
this also avoids a 403 after hammering Stack Overflow with our
linkchecker
2024-02-20 14:23:28 +01:00
Valentin Gagarin 5ec1a4967c use nixShellNoCC in tutorials and guides
in our examples we never actually use the compiler toolchain stuff from
`mkShell`, so we may as well not burden users with large downloads.
2024-02-06 21:16:17 +01:00
Valentin Gagarin 9c12897c8f
fix up language in python environment guide (#882) 2024-01-29 01:44:42 +00:00
Valentin Gagarin e6c1fb1b14
move automatic environments up, add next steps (#881)
automatically entering the shell is the next logical step, especially if
we have turned it on and off multiple times in a row.
2024-01-29 02:42:49 +01:00
Valentin Gagarin cfa14f780a
update the FAQ on packaging (#883)
* update the FAQ on packaging

Co-authored-by: Silvan Mosberger <github@infinisil.com>
2024-01-29 01:41:51 +00:00
Valentin Gagarin 15dfbcf6c3 remove no-op command in troubleshooting advice
`nix-store --init` doesn't actually do anything [0] and is not even
documented in the Nix manual

[0]: 9651034dc2/src/nix-store/nix-store.cc (L736-L744)
2024-01-05 18:50:50 +01:00
Jeff Huffman e3f4d7be86
add FAQ entry on how to run non-nix executables (#832) 2023-12-11 11:39:21 +01:00
Robert Hensing 9cc2ddd16a
Merge pull request #764 from fricklerhandwerk/add-manuals
host Nix reference manual on nix.dev
2023-12-04 17:10:45 +01:00
Daniel R 6946cb0e2e
move question on rechecking binary cache to a Nix recipe (#808)
* mv question -f faqs -t nix-recipes

* add nix-recipes to page index and fix hierarchy

* change question to statement

* rephrase a few sentences and add links

* move the question to troubleshooting

* fix broken link

---------

Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-11-30 16:41:18 +01:00
Valentin Gagarin 755e949a53
reduce the sharing dependencies tutorial to a guide (#778)
* shorten the sharing dependencies article to a guide

the contents do not really warrant a full-blown tutorial

* use an example with an explicit build-time dependency

* fix typo

* link `inputsFrom` to Nixpkgs manual
2023-11-30 16:17:35 +01:00
fricklerhandwerk c70711a9d5 update all links to the Nix manual 2023-11-27 07:30:36 +01:00
Valentin Gagarin 5aa0254754
search path -> lookup path (#747)
recent additions to the Nix manual clarify the distinction between
search path and lookup path, and also document the resolution algorithm.

lookup paths are now a distinct Nix language construct with its own
reference documentation.
2023-11-13 10:30:42 +01:00
Valentin Gagarin 0d770fce2e
fix formatting/punctuation (#794) 2023-11-09 16:38:09 +01:00
Valentin Gagarin 8a74a98c54
rewrite guide to pinning dependencies with niv (#782)
* rewrite guide to pinning dependencies with niv

* use the specific branch directly

Co-authored-by: Silvan Mosberger <github@infinisil.com>

* use the shell's niv explicitly

* Apply suggestions from code review

---------

Co-authored-by: Silvan Mosberger <github@infinisil.com>
2023-11-07 22:26:23 +01:00
Daniel R ab98971f03
move question 'what are channels...?' -f recipes -t concepts (#744)
Co-authored-by: Alexander Groleau <alex@proof.construction>
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
Co-authored-by: Silvan Mosberger <silvan.mosberger@tweag.io>
2023-11-07 03:11:25 +01:00
wamirez b1ae5e47fc rephrase best practices for clarity 2023-11-06 12:23:27 -04:00
Valentin Gagarin 5c0ac8a727
add best practice on reproducible Nixpkgs configuration (#780) 2023-11-02 02:30:40 +01:00
fricklerhandwerk 8afee98203 dissolve the Learning Journey section
This does not yet follow #701, because the change to get there would be
too big. The goal is to keep the table of contents meaningful at all
times and the diff of each pull request manageable.

The packaging tutorial is quite important, so it's not wrong to have it
visible on the front page until we have enough material for a packaging
section.

The sharing dependencies article should really be a very brief guide, but
because that would be quite a big change, it's only moved to the Guides
section for now.
2023-11-02 00:13:32 +01:00
fricklerhandwerk 2f09d22b8b fix styling issues and links 2023-11-01 23:52:10 +01:00
Valentin Gagarin 3a52c0ac05
add Recipes section under Guides category (#775)
* add Recipes section under Guides category

This also removes the templates section, as we're not maintaining it and it likely won't be necessary anyway once the curriculum is roughly finished.
2023-10-27 17:09:16 +02:00