Sergei Trofimovich
092d57c076
Merge remote-tracking branch 'origin/staging-next' into staging
...
Conflicts:
pkgs/development/tools/language-servers/ansible-language-server/default.nix
2022-12-28 09:35:37 +00:00
Naïm Favier
3f6fed2e59
doc,nixos/doc: unescape ellipses
...
Leftovers from the CommonMark conversion.
2022-12-27 17:13:49 +01:00
Naïm Favier
e9e65810ac
doc,nixos/doc: unescape double quotes
...
Leftovers from the CommonMark conversion.
2022-12-27 17:13:49 +01:00
Naïm Favier
d11832fd96
doc,nixos/doc: unescape apostrophes
...
Leftovers from the CommonMark conversion.
2022-12-27 17:13:47 +01:00
Jörg Thalheim
ea415d1a38
Merge pull request #207038 from NixOS/make-disk-image-for-uefi
...
make-disk-image: documentation, UEFI variables recording, improved determinism
2022-12-26 11:02:28 +00:00
figsoda
b6c0e7f563
Merge pull request #205935 from figsoda/cargo-lock
...
rustPlatform.importCargoLock: add allowBuiltinFetchGit option
2022-12-25 19:38:36 -05:00
Anderson Torres
593381845f
doc/contributing/coding-conventions: add subsection for language servers
2022-12-25 10:57:29 -03:00
Jan Tojnar
72c37eddec
Merge branch 'staging-next' into staging
2022-12-25 01:30:47 +01:00
Raito Bezarius
22adcaa449
nixos/lib/make-disk-image: docs, UEFI vars recording, more determinism
...
- Extensive documentation in NixOS manual
- Deterministic mode that fixes various identifiers relative to disk
partitions and filesystems in ext4 case
- UEFI variable recording
2022-12-24 19:15:29 +01:00
Silvan Mosberger
8496683ec9
lib: Allow doc rendering for lib/<name>/default.nix
2022-12-23 21:10:43 +01:00
Silvan Mosberger
b3792b44c5
lib: correctly render docs for nested identifiers
...
Applies https://github.com/nix-community/nixdoc/pull/27 and fixes up the
location information rendering, allowing lib functions to be nested in
further scopes
Needed for later commits
2022-12-23 21:10:16 +01:00
Robert Hensing
84c1409627
Merge pull request #207268 from ncfavier/systemd-scriptArgs
...
nixos/systemd: document what `scriptArgs` is for
2022-12-23 01:20:44 +01:00
Naïm Favier
feb9ba5839
doc/link-unix-man-references: add a bunch of systemd pages
2022-12-22 16:03:31 +01:00
Naïm Favier
5782c3d802
doc/lib-functions: print libset name before description
2022-12-22 11:31:11 +01:00
Naïm Favier
ce952286ca
doc/lib-functions: preserve libsets order
2022-12-22 11:31:11 +01:00
Naïm Favier
e1bb8f1e74
doc/lib-functions: add versions
, cli
2022-12-22 11:31:11 +01:00
Naïm Favier
8906aa28e4
doc/lib-functions: remove warnings
...
Building the nixpkgs manual currently triggers a bunch of deprecation
warnings, because every attribute in `lib` is evaluated to see if it's
an attrset to generate locations for.
Instead, share the lib subsets to include in the documentation
between `lib-function-docs` and `lib-function-locations` so they can
coordinate.
Also generate the list of sections instead of duplicating it in
`library.xml`.
2022-12-22 11:31:08 +01:00
Domen Kožar
bcc8d11f01
Merge pull request #206951 from MercuryTechnologies/gabriella/macos-builder
...
darwin.builder: init
2022-12-21 12:20:12 +00:00
jakobkukla
ecdbd2a3fa
doc: remove missing arg from emulateApp example
2022-12-20 04:28:20 +01:00
Gabriella Gonzalez
44c6fdabc2
Add documentation
2022-12-19 17:03:45 -08:00
David McFarland
824d40aa04
build-dotnet-module: restore for current runtime by default
2022-12-19 15:36:25 -04:00
github-actions[bot]
dc7ebb0163
Merge staging-next into staging
2022-12-18 18:01:41 +00:00
figsoda
403e25e3e3
doc: fix typos
2022-12-17 18:21:48 -05:00
github-actions[bot]
4804305f6e
Merge staging-next into staging
2022-12-17 06:02:03 +00:00
Jason Miller
8392158289
cudaPackages: add cudaFlags ( #205351 )
...
* cudaPackages: add cudaFlags
* cudaNames -> cudaMicroarchitectureNames
* update documentation, remove config for static library removal
* doc link added to flags
* fix whitespace in assignment
2022-12-16 22:00:36 -08:00
Winter
f1292b31d6
doc/languages-frameworks/javascript: use --ignore-scripts flag in example
...
Presenting an example with a patch (without even providing that patch!) is not ideal. Since `npm pack` now obeys `--ignore-scripts`, we can use that instead.
2022-12-13 19:40:27 -05:00
figsoda
cce3dc63a0
rustPlatform.importCargoLock: add allowBuiltinFetchGit option
2022-12-13 11:27:26 -05:00
github-actions[bot]
8506553217
Merge staging-next into staging
2022-12-13 00:02:51 +00:00
Robert Hensing
a70a69156c
Merge pull request #205768 from hercules-ci/remove-numbers-from-manuals
...
doc: Remove all section numbers
2022-12-12 22:11:28 +01:00
Robert Hensing
c23666473c
doc: Remove all section numbers
...
Simplicity.
We use anchors nowadays. Nobody should be printing this.
2022-12-12 13:04:39 +01:00
github-actions[bot]
285157a0f9
Merge staging-next into staging
2022-12-11 06:01:42 +00:00
Robert Hensing
43dcea7885
Merge pull request #204626 from fricklerhandwerk/ifd-policy
...
document Import From Derivation (IFD) policy
2022-12-11 02:37:09 +01:00
Robert Hensing
16f5747575
Merge pull request #175649 from Artturin/opt-in-structured-attrs
...
stdenv: support opt-in __structuredAttrs
2022-12-10 21:12:43 +01:00
Valentin Gagarin
d9f9ead58a
Update doc/contributing/coding-conventions.chapter.md
...
Co-authored-by: Mostly Void <dit7ya@users.noreply.github.com>
2022-12-10 11:46:53 +01:00
Artturin
fda61e9066
add docs for prependToVar and appendToVar
2022-12-10 04:22:11 +02:00
Naïm Favier
4e5ebcc3ed
vim-full: rename from vim_configurable
...
Avoids confusion: `vim-full`'s build-time features are configurable, but both
`vim` and `vim-full` are *customizable* (in the sense of user configuration).
2022-12-09 09:55:55 +01:00
Valentin Gagarin
a2b6bd7b35
Merge pull request #126213 from ryantm/lib-doc-gen
...
doc: auto-generate asserts and attrset library docs
2022-12-09 09:33:35 +01:00
Robert Hensing
470e6fd1cd
Merge pull request #201902 from ck3mp3r/dockertools-architecture-in-config-200725
...
Adding ability to set image architecture when creating OCI images using DockerTools
2022-12-08 23:54:50 +01:00
Ryan Mulligan
ac1ae0a58e
doc: auto-generate asserts and attrset library docs
...
If all the docs are auto-generated, it should be easier to convert
them to Commonmark.
Co-Authored-By: Valentin Gagarin <valentin.gagarin@tweag.io>
Co-Authored-By: Silvan Mosberger <contact@infinisil.com>
2022-12-08 22:58:22 +01:00
Jörg Thalheim
0b8b0c65cc
Merge pull request #205187 from Mic92/cue-validator
...
cue: init writeCueValidator
2022-12-08 21:38:55 +00:00
Raito Bezarius
f25d48180a
cue: add documentation on writeCueValidator
2022-12-08 22:19:06 +01:00
Christian Kemper
f6ae4479ea
dockerTools: allowing architecture to be specified
...
... for buildImage, buildLayeredImage and streamLayeredImage,
adding docs and tests.
2022-12-08 20:29:09 +01:00
zowoq
7d04753e2f
doc/go: fix link
2022-12-08 02:29:18 +10:00
Manuel
5d8e07c835
doc: add hint about lib.fakeSha256 to go section ( #204132 )
...
* doc: add hint about lib.fakeSha256 to go section
Found it here: https://stackoverflow.com/a/71934521/1633985
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2022-12-07 17:03:35 +01:00
Valentin Gagarin
db1a83aaa4
docs: fixup wording and formatting on JavaScript
2022-12-07 16:47:31 +01:00
Valentin Gagarin
53b5a47c12
document Import From Derivation (IFD) policy
2022-12-07 16:47:30 +01:00
Valentin Gagarin
5b9b93b9be
Merge pull request #204257 from raboof/nixpkgs-manual-update-meta-attributes
...
manual: update meta-attributes section
2022-12-05 09:46:46 +01:00
Jörg Thalheim
c0491d5fd2
Merge pull request #204343 from urandom2/sridoc
...
doc: use sri hash syntax
2022-12-04 10:04:57 +01:00
Colin Arnott
bac379f30a
doc: use sri hash syntax
...
The nixpkgs manual contains references to both sri hash and explicit
sha256 attributes. This is at best confusing to new users. Since the
final destination is exclusive use of sri hashes, see nixos/rfcs#131 ,
might as well push new users in that direction gently.
Notable exceptions to sri hash support are builtins.fetchTarball,
cataclysm-dda, coq, dockerTools.pullimage, elixir.override, and
fetchCrate. None, other than builtins.fetchTarball, are fundamentally
incompatible, but all currently accept explicit sha256 attributes as
input. Because adding backwards compatibility is out of scope for this
change, they have been left intact, but migration to sri format has been
made for any using old hash formats.
All hashes have been manually tested to be accurate, and updates were
only made for missing upstream artefacts or bugs.
2022-12-04 06:12:18 +00:00
figsoda
75c01e730d
Merge pull request #203520 from figsoda/nextest
...
rustPlatform.buildRustPackage: add cargo-nextest support
2022-12-03 19:03:34 -05:00
Arnout Engelen
cfdd900d66
manual: update meta-attributes section
...
Promote the `maintainers = with maintainers; [ ]` syntax as that is most common
in nixpkgs, and remove the `nix-env` example which doesn't work like that anymore.
2022-12-03 10:04:15 +00:00
Victor Engmark
9cf0ee43e7
doc: Use POSIX syntax to source file
...
Avoids bashism in case another shell is active.
2022-11-29 08:39:37 -05:00
Victor Engmark
22d3b5a9e9
doc: Quote variable references
2022-11-29 08:39:37 -05:00
Victor Engmark
852ef6e971
doc: Fix grammar
2022-11-29 08:39:37 -05:00
figsoda
0f386d1896
docs/rust: document cargoNextestHook
and useNextest
2022-11-28 18:30:30 -05:00
Silvan Mosberger
a566d0842e
Merge pull request #172736 from infinisil/docker-nix-shell
2022-11-26 20:21:59 +01:00
Winter
125bd1f0b5
doc/languages-frameworks/javascript: update deps hash in example
2022-11-23 20:52:08 -05:00
figsoda
82fe76d1cd
carnix,cratesIO: remove
2022-11-22 14:10:25 -05:00
Winter
93334f5234
npmHooks.npmInstallHook: pass install flags to prune
2022-11-21 15:00:08 -05:00
Sandro
3a05360e53
Merge pull request #200082 from panicgh/fetchgit-sparse-checkout
2022-11-21 20:00:56 +01:00
Artturi
80212614a3
Merge pull request #187921 from amjoseph-nixpkgs/pr/manual/rust/buildRustY
...
doc/../rust.section.md: prominently mention `buildRustXX` names
2022-11-21 19:08:38 +02:00
Robert Hensing
29352751cf
Merge pull request #196251 from hercules-ci/testers-build-failure-and-equal-contents
...
`testers`: Add `testBuildFailure` and `testEqualContents`
2022-11-21 06:17:00 +01:00
Martin Weinelt
18ab6d062b
sphinxHook: inherit from python3Packages
2022-11-20 15:39:34 +01:00
Artturin
341e6fd558
splice.nix: start deprecating nativeDrv and crossDrv
2022-11-19 00:04:54 +02:00
Nicolas Benes
f6b07f0e2f
fetchgit: make sparseCheckout a list of strings
...
The `sparseCheckout` argument allows the user to specify directories or
patterns of files, which Git uses to filter files it should check-out.
Git expects a multi-line string on stdin ("newline-delimited list", see
`git-sparse-checkout(1)`), but within nixpkgs it is more consistent to
use a list of strings instead. The list elements are joined to a
multi-line string only before passing it to the builder script.
A deprecation warning is emitted if a (multi-line) string is passed to
`sparseCheckout`, but for the time being it is still accepted.
2022-11-15 19:45:33 +01:00
Jocelyn Thode
2f933d60fb
doc/vim: Clarify buildVimPlugin/buildVimPluginFrom2Nix
2022-11-14 14:59:13 -05:00
John Ericson
cd27a5b436
Merge pull request #82131 from Ericson2314/bsd-cross
...
FreeBSD packages: Init at 13.1
2022-11-13 21:35:17 -05:00
github-actions[bot]
f3a93620b1
Merge master into staging-next
2022-11-10 12:01:27 +00:00
Shamrock Lee
da31bd5673
patchRcPathBash, patchRcPathCsh, patchRcPathFish, patchRcPathPosix: init
...
Init patchRcPath hooks, which provides
utilities to patch shell scripts to be sourced by users.
Add test cases and documentation.
2022-11-10 09:23:52 +08:00
github-actions[bot]
d99020653d
Merge master into staging-next
2022-11-09 18:01:11 +00:00
Winter
16722903aa
buildNpmPackage: init
2022-11-09 10:35:59 -05:00
github-actions[bot]
81316207ec
Merge master into staging-next
2022-11-09 00:02:55 +00:00
github-actions[bot]
4517d658d3
Merge master into staging-next
2022-11-08 18:01:16 +00:00
Ryan Mulligan
f3d0e1d5c3
nixpkgs/doc: fix admonition syntax
...
Match admonition syntax in
https://nixos.org/manual/nixpkgs/unstable/#chap-contributing
2022-11-08 07:30:20 -08:00
Ryan Mulligan
962a810513
nixpkgs/doc/stdenv: fix admonition class
...
Change to match the formatting of the other admonitions that use
classes.
This was breaking the mmdoc output.
2022-11-07 13:32:21 -08:00
github-actions[bot]
a9864a3f5a
Merge master into staging-next
2022-11-06 06:01:30 +00:00
Anderson Torres
4b59590ac5
Revert "lib,doc: remove obvious usages of toString on paths"
2022-11-05 21:57:23 -03:00
github-actions[bot]
a46c8c1b26
Merge master into staging-next
2022-11-06 00:02:47 +00:00
Artturin
66cf79f282
lib,doc: remove obvious usages of toString on paths
...
It gives a warning on the lazy-trees branch of Nix
(NixOS/nix#6530 )
one of these was also giving me an error (the one in lib/trivial probably)
```
$ nix build
warning: applying 'toString' to path '/home/artturin/nixgits/my-nixpkgs/nixos/modules/installer/sd-card/sd
-image-aarch64.nix' and then accessing it is deprecated, at /home/artturin/nixgits/my-nixpkgs/lib/modules.
nix:349:99
warning: applying 'toString' to path '/home/artturin/nixgits/my-nixpkgs/.git' and then accessing it is dep
recated, at /home/artturin/nixgits/my-nixpkgs/lib/sources.nix:35:32
warning: applying 'toString' to path '/home/artturin/nixgits/my-nixpkgs/nixos/modules/system/etc/etc.nix'
and then accessing it is deprecated, at «stdin»:0
warning: applying 'toString' to path '/home/artturin/nixgits/my-nixpkgs/nixos/modules/system/etc/etc-activ
ation.nix' and then accessing it is deprecated, at «stdin»:0
warning: applying 'toString' to path '/home/artturin/nixgits/my-nixpkgs/nixos/modules/installer/sd-card/sd
-image-aarch64.nix' and then accessing it is deprecated, at «stdin»:0
error: cannot decode virtual path '/nix/store/virtual0000000000000000000000005-source'
(use '--show-trace' to show detailed location information)
```
2022-11-06 00:00:39 +02:00
John Ericson
66aa02f190
lib/systems: Support FreeBSD
...
A tricky thing about FreeBSD is that there is no stable ABI across
versions. That means that putting in the version as part of the config
string is paramount.
We have a parsed represenation that separates name versus version to
accomplish this. We include FreeBSD versions 12 and 13 to demonstrate
how it works.
2022-11-04 16:49:28 -04:00
github-actions[bot]
08b08d0caf
Merge staging-next into staging
2022-11-04 00:03:34 +00:00
Guillaume Girol
3befade691
doc: fix python module override example
2022-11-03 19:54:51 +01:00
github-actions[bot]
a8e550e843
Merge staging-next into staging
2022-11-01 00:03:36 +00:00
0x4A6F
b37df78bfe
doc/languages-frameworks/rust: example for disabling tests ( #198705 )
2022-10-31 22:39:34 +01:00
github-actions[bot]
85d6819fff
Merge staging-next into staging
2022-10-31 18:03:46 +00:00
figsoda
0426b36f9f
doc/vim: update docs for nvim-treesitter
2022-10-31 09:44:02 -04:00
John Ericson
0c09b3d17c
Merge pull request #197937 from danielbarter/cc-wrapper-hook
...
cc-wrapper: adding a cc-wrapper-hook to the cc-wrapper
2022-10-28 17:30:03 +01:00
Robert Hensing
e20a362908
testers.testEqualContents: init
2022-10-27 14:06:38 +02:00
Robert Hensing
44d0f37833
testers.testBuildFailure: init
2022-10-27 14:06:38 +02:00
Daniel Barter
77bd639c4c
cc-wrapper: adding a cc-wrapper-hook to the cc-wrapper
2022-10-26 09:33:43 -07:00
Silvan Mosberger
c0c3c3f1c4
Merge pull request #197905 from infinisil/lib-filesystem-docs
...
lib: Automatically generate lib.filesytem docs
2022-10-26 18:11:32 +02:00
Silvan Mosberger
9bfc4bbd63
lib: Automatically generate lib.filesytem docs
2022-10-26 15:10:47 +02:00
Jan Tojnar
fa285355ee
nixos/doc/manual/md-to-db.sh: Add support for <kbd> element
2022-10-26 01:46:44 +02:00
Emilia Bopp
8bec7996cc
doc: fix syntax error in Lua documentation
2022-10-25 22:34:32 +02:00
Stanisław Pitucha
713369c44b
doc/contributing: Explicitly allow trivial changes by non-authors
...
Discussed and proposed at https://discourse.nixos.org/t/rules-around-adding-to-someones-pr/22671/3
2022-10-23 15:23:02 +11:00
Janne Heß
1b768f41e9
Merge pull request #173506 from helsinki-systems/feat/document-no-breaking-commits
...
doc: Document that the staging branches may be restricted
2022-10-21 22:58:33 +02:00
Robert Hensing
c1311d1223
doc/stdenv: Move Other hooks after all hooks
2022-10-13 21:15:19 +02:00
Robert Hensing
53088569de
doc/stdenv: Clarify that the wrappers come with hooks
2022-10-13 21:14:21 +02:00
Robert Hensing
f4c6286284
doc/stdenv: Improve language a bit
2022-10-13 21:14:04 +02:00
Robert Hensing
2db8de920e
doc: Move non-stdenv hooks out of stdenv chapter
2022-10-13 15:40:27 +02:00