about summary refs log tree commit diff
path: root/doc/hooks
AgeCommit message (Collapse)AuthorFilesLines
2024-05-15wafHook: don't add cross compilation flagsAlyssa Ross1-4/+0
These flags are not part of waf, they're custom flags that are not widely implemented. More packages are broken because of these flags being added than actually recognise them. Of the packages in Nixpkgs that directly depend on wafHook that we can attempt to cross compile (i.e. all their dependencies cross compile), 5 already successfully cross compile and recognise these flags, 2 already successfully cross compile because they have been opted out of these flags, 3 don't cross compile successfully for reasons unrelated to these flags, and for the remaining 7, the only thing stopping them cross compiling successfully is that they are being passed these flags that they don't recognise. All of the five successfully cross-compiling packages that do recognise these flags are samba projects: ldb, talloc, tdb, tevent, and samba4. So this isn't a general waf convention, just a samba one. It therefore doesn't make sense to set these flags by default. They should just be included in the expressions for each samba project, like all the other quirks common to samba build systems. This change fixes cross compilation of the following packages: blockhash ganv ndn-cxx mda_lv2 pflask raul saldl
2024-05-02zig: 0.11 -> 0.12 (#306077)Felix Uhl1-2/+2
This upgrades the default version of zig to zig_0_12, which builds reproducibly on darwin. Fixes #299091. Also upgrades all packages compatible with zig 0.12 to that version. I tried to upgrade packages currently pinning 0.11 as well, but only a few worked. Co-authored-by: Weijia Wang (wegank) <contact@weijia.wang>
2024-03-28treewide: Fix all Nix ASTs in all markdown filesJanne Heß3-23/+28
This allows for correct highlighting and maybe future automatic formatting. The AST was verified to work with nixfmt only.
2024-02-05fix: include reference and link to `outputMan`Yannik Sander1-1/+1
2024-02-04Merge pull request #283080 from marsam/postgresql-test-hook-settingsMario Rodas1-0/+1
postgresqlTestHook: add postgresqlExtraSettings variable
2024-01-31doc: clarify python.sitePackagesSandro1-1/+1
Co-authored-by: Peder Bergebakken Sundt <pbsds@hotmail.com>
2024-01-30treewide: replace `lib/${python.libPrefix}/site-packages` with its shorthand ↵Sandro Jäckel1-1/+1
`${python.sitePackages}` which should be always preferred
2024-01-22postgresqlTestHook: add postgresqlExtraSettings variableMario Rodas1-0/+1
Add `postgresqlExtraSettings` to allow to setup the `postgresql.conf`. This would be useful in cases where we need to set `shared_preload_libraries`.
2023-11-14Merge master into staging-nextgithub-actions[bot]2-4/+0
2023-11-14docs/hooks/qt-4: removeajs1242-4/+0
was missed when qt4 was removed
2023-11-10Merge staging-next into staginggithub-actions[bot]1-1/+1
2023-11-10Merge master into staging-nextgithub-actions[bot]1-1/+1
2023-11-09doc: avoid 'simply' (#266434)Arnout Engelen1-1/+1
While the word 'simply' is usually added to encourage readers, it often has the opposite effect and may even appear condescending, especially when the reader runs into trouble trying to apply the suggestions from the documentation. It is almost always an improvement to simply drop the word from the sentence. (there are more possible improvements like this, we can apply those in separate PRs)
2023-10-30doc: update meson.section.mdAnderson Torres1-25/+58
2023-10-27doc: fix heading of mesonInstallTagsWeijia Wang1-9/+5
2023-10-23meson: introduce mesonInstallTagsJulian Stecklina1-0/+9
Projects building with meson are currently installTargets. Map these to install tags, which are roughly equivalent. This allows projects to selectively install components.
2023-10-21doc: fix heading levels of Meson hook documentationAlyssa Ross1-4/+4
Fixes: 10f35ff05df1 ("meson.setupHook: prefer meson commands over ninja")
2023-10-09meson.setupHook: prefer meson commands over ninjaAlyssa Ross2-3/+25
Meson now comes with its own set of commands for building, testing, installing etc., that by default wrap around Ninja. The reason to prefer using the Meson commands is that they take additional options (e.g. setting custom timeouts for tests — my motivation for this change). Here, I've modified the Meson setup hook so that Meson's test and install commands will be used instead of Ninja's when Meson's configurePhase is used. This restriction is to avoid starting to run Meson directly when dealing with custom build systems that wrap around Meson, like QEMU's. We don't use meson's compile command, as it just runs ninja, and that's handled fine by the existing Ninja setup hook. Naturally the Meson commands don't support entirely the same set of options that the Ninja ones did, but I checked through Nixpkgs to find any packages using Meson that used any options that wouldn't be picked up by this new system. I only found one, and it was just setting checkTarget = "test", which is the default value for Ninja and has no Meson equivalent (because we directly tell Meson to run the tests rather than going through a generic job system like Ninja). Link: https://github.com/NixOS/nixpkgs/issues/113829 Co-authored-by: Jan Tojnar <jtojnar@gmail.com>
2023-09-28treewide: Fix typosPeder Bergebakken Sundt1-1/+1
2023-09-22doc: include short docs about bmakeAnderson Torres2-0/+8
2023-09-10doc/hooks/zig.section.md: rewriteAnderson Torres1-8/+8
- Normalize header IDs, in order to not cause conflicts with identically named headers in other docs. - Reorganize the hierarchy of information.
2023-09-10doc/hooks/waf.section.md: rewriteAnderson Torres1-21/+29
- Normalize header IDs, in order to not cause conflicts with identically named headers in other docs. - Reorganize the hierarchy of information.
2023-09-09doc/hooks/zig.section.md: rewordAnderson Torres1-12/+16
- Refer to stdenv documentation instead of repeating it
2023-08-26doc/hooks/waf.section.md: change wafHook to waf.hookAnderson Torres1-6/+6
2023-08-26Merge master into staging-nextgithub-actions[bot]2-0/+25
2023-08-24wafHook: fix missing header idMario Rodas1-1/+1
2023-08-22mpiCheckPhaseHook: add new setup hook for MPI aware check phasesMarkus Kowalewski2-0/+25
Add this hook to checkPhase to allow for running MPI application in the sandbox. It detects the MPI implementations and sets the respective environment variables.
2023-08-13wafHook: documentationAnderson Torres1-1/+48
A very comprehensive one!
2023-08-10treewide: use zig_0_11 instead of zig for zig packagesfigsoda1-2/+2
Zig is still under active development, and new releases often introduce breaking changes. This makes updating the default version of zig easier. Some packages did not receive this change because they could be using the c compiler or linker of zig, which doesn't receive as much breaking changes compared to e.g. the zig std library. https://github.com/NixOS/nixpkgs/pull/248243#discussion_r1289401340
2023-08-10zig.hook: rename from zigHookfigsoda1-6/+6
This makes using specific versions of zig easier (without overrides)
2023-08-01doc/hooks/index.md: add zig.section.mdAnderson Torres2-0/+60
A somewhat short documentation about zigHook.
2023-07-01doc: render nixpkgs manual with nrdpennae2-37/+33
also updates nixdoc to 2.3.0. the nixdoc update is not a separate commit because that would leave the manual build broken for one commit, potentially breaking bisects and rebases.
2023-06-10doc: make sure section depths are consecutivepennae23-52/+29
skipping heading levels (eg from # to ###, or starting at ###) is legal in pandoc, but not in nixos-render-docs. pandoc acts as though section levels *were* consecutive, nixos-render-docs prefers to tell people not to do that kind of thing because it can make documents more fragile.
2023-02-10nixos/manual: remove .title fenced divspennae1-2/+0
pandoc drops .title classes when rendering to docbook, so these are effectively just paragraphs anyway. without support for including them in a table of contents the complexity of parsing them in nixos-render-docs won't be warranted.
2023-01-25postgresqlTestHook: run postgresqlTestSetupPost hook after setting upNick Cao1-0/+6
2023-01-21doc: adapt to nativeCheckInputsGuillaume Girol1-1/+1
2022-11-10patchRcPathBash, patchRcPathCsh, patchRcPathFish, patchRcPathPosix: initShamrock Lee2-0/+51
Init patchRcPath hooks, which provides utilities to patch shell scripts to be sourced by users. Add test cases and documentation.
2022-10-13doc: Move non-stdenv hooks out of stdenv chapterRobert Hensing24-0/+184
2022-09-19doc/postgresql-test-hook: Add exampleRobert Hensing1-1/+1
2022-04-18doc/hooks/index.xml: Fix typo and terminologyRobert Hensing1-1/+1
2022-04-16postgresqlTestHook: initRobert Hensing2-0/+69