about summary refs log tree commit diff
path: root/doc
Commit message (Collapse)AuthorAge
* doc: improve javascript conventions (#298127)Eli Flanagan2024-03-22
| | | | | I created newlines per the <https://github.com/NixOS/nixpkgs/blob/master/doc/README.md#documentation-conventions> guide. This paves the way for future contributions to not be distracted by expected conventions.
* Merge pull request #297687 from DanielSidhion/fix-manual-headingsSilvan Mosberger2024-03-21
|\ | | | | doc: fix code to generate links for headings in the manual
| * doc: fix code to generate links for headings in the manualDS2024-03-21
| |
* | Merge pull request #297347 from tzx/docs-right-location-buildPytonPackageMartin Weinelt2024-03-21
|\ \ | |/ |/| doc: document name binding for buildPythonPackage
| * doc: document name binding for buildPythonPackageTimmy Xiao2024-03-21
| |
* | doc: Add troubleshooting for Cythonized code and pytest (#293069)Sarah Clark2024-03-20
|/ | | | | | | Cython is a Python compiler that emits native .so modules. By default, python derivations run tests in the wrong directory to see these modules and tests fail. Issue #255262 documents the root cause and solution for this problem. This PR adds a description of the problem and the most common solution to the test troubleshooting list.
* Merge pull request #281576 from yannham/refactor/cuda-setup-hooks-refactorSomeone2024-03-19
|\ | | | | cudaPackages: generalize and refactor setup hooks
| * cudaPackages: generalize and refactor setup hookYann Hamdaoui2024-03-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This PR refactor CUDA setup hooks, and in particular autoAddOpenGLRunpath and autoAddCudaCompatRunpathHook, that were using a lot of code in common (in fact, I introduced the latter by copy pasting most of the bash script of the former). This is not satisfying for maintenance, as a recent patch showed, because we need to duplicate changes to both hooks. This commit abstract the common part in a single shell script that applies a generic patch action to every elf file in the output. For autoAddOpenGLRunpath the action is just addOpenGLRunpath (now addDriverRunpath), and is few line function for autoAddCudaCompatRunpathHook. Doing so, we also takes the occasion to use the newer addDriverRunpath instead of the previous addOpenGLRunpath, and rename the CUDA hook to reflect that as well. Co-Authored-By: Connor Baker <connor.baker@tweag.io>
* | Merge pull request #178717 from ShamrockLee/write-multiple-referencesSomeone2024-03-19
|\ \ | | | | | | trivial-builders: replace writeReferencesToFile with writeClosure
| * | writeClosure: init, replacing writeReferencesToFileYueh-Shun Li2024-03-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace writeReferencesToFile with writeClosure. Make writeClosure accept a list of paths instead of a path. Re-implement with JSON-based exportReferencesGraph interface provided by __structuredAttrs = true. Reword the documentation. Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io> Co-authored-by: Robert Hensing <roberth@users.noreply.github.com> Co-authored-by: Someone Serge <sergei.kozlukov@aalto.fi>
* | | Merge pull request #296549 from TomaSajt/strip-java-archives-hookPol Dellaiera2024-03-19
|\ \ \ | | | | | | | | add stripJavaArchivesHook and use treewide
| * | | doc: include stripJavaArchivesHook in the java sectionTomaSajt2024-03-17
| | |/ | |/|
* | | Merge pull request #294019 from Lurkki14/doc-makedesktopitemDaniel Sidhion2024-03-18
|\ \ \ | | | | | | | | doc: document makeDesktopItem
| * | | doc: document makeDesktopItemJussi Kuokkanen2024-03-18
| | | |
* | | | doc/mkYarnPackage: document better distPhase and doDistDoron Behar2024-03-18
| | | |
* | | | Merge branch 'master' into haskell-updatesmaralorn2024-03-16
|\ \ \ \
| * | | | doc: fix and simplify stylesheets for the manuals, fix nrd bug (#295847)Daniel Sidhion2024-03-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc: fix and simplify stylesheets for the manuals, fix nrd bug * Add anchorjs script to add links on section headers * Fix another nrd bug, address style changes * Use span instead of a for inline span syntax
* | | | | Merge master into haskell-updatesgithub-actions[bot]2024-03-15
|\| | | |
| * | | | Merge pull request #293416 from DanielSidhion/remove-makesnapSilvan Mosberger2024-03-14
| |\ \ \ \ | | |_|_|/ | |/| | | snapTools: remove
| | * | | snapTools: removeDS2024-03-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `snapTools.makeSnap` has produced broken snaps since at least Oct 2020, as indicated by the following issue: https://github.com/NixOS/nixpkgs/issues/100618 No person has shown interest in maintaining it, and given that there is no fix available, it's assumed that all attempts made to fix that function have not succeeded. Given that `snapTools` only contained `makeSnap`, it was removed completely.
* | | | | Merge master into haskell-updatesgithub-actions[bot]2024-03-13
|\| | | |
| * | | | trivial-builders: Deduplicate docsRobert Hensing2024-03-11
| | |_|/ | |/| | | | | | | | | | | | | | I didn't have the opportunity to do all work at once, so I've added TODOs to bring attention to the situation.
* | | | Merge master into haskell-updatesgithub-actions[bot]2024-03-09
|\| | |
| * | | Merge pull request #289231 from adisbladis/fetchnpmlockadisbladis2024-03-08
| |\ \ \ | | |_|/ | |/| | importNpmLock: init
| | * | importNpmLock: initadisbladis2024-03-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an alternative to `fetchNpmDeps` that is notably different in that it uses metadata from `package.json` & `package-lock.json` instead of specifying a fixed-output hash. Notable features: - IFD free. - Only fetches a node dependency once. No massive FODs. - Support for URL, Git and path dependencies. - Uses most of the existing `npmHooks` `importNpmLock` can be used _only_ in the cases where we need to check in a `package-lock.json` in the tree. Currently this means that we have 13 packages that would be candidates to use this function, though I expect most usage to be in private repositories. This is upstreaming the builder portion of https://github.com/adisbladis/buildNodeModules into nixpkgs (different naming but the code is the same). I will archive this repository and consider nixpkgs the new upstream once it's been merged. For more explanations and rationale see https://discourse.nixos.org/t/buildnodemodules-the-dumbest-node-to-nix-packaging-tool-yet/35733 Example usage: ``` nix stdenv.mkDerivation { pname = "my-nodejs-app"; version = "0.1.0"; src = ./.; nativeBuildInputs = [ importNpmLock.hooks.npmConfigHook nodejs nodejs.passthru.python # for node-gyp npmHooks.npmBuildHook npmHooks.npmInstallHook ]; npmDeps = buildNodeModules.fetchNodeModules { npmRoot = ./.; }; } ```
* | | | Merge master into haskell-updatesgithub-actions[bot]2024-03-07
|\| | |
| * | | doc/lua.section.md: update lua documentationMatthieu Coudron2024-03-06
| | | |
| * | | Remove top level `with lib;` in docs (#293829)Philip Taron2024-03-06
| | | |
| * | | Nix docs: remove `with lib;` from example codeAnderson Torres2024-03-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Following [Best Practices](https://nix.dev/guides/best-practices#with-scopes), `with` is a problematic language construction and should be avoided. Usually it is employed like a "factorization": `[ X.A X.B X.C X.D ]` is written `with X; [ A B C D ]`. However, as shown in the link above, the syntatical rules of `with` are not so intuitive, and this "distributive rule" is very selective, in the sense that `with X; [ A B C D ]` is not equivalent to `[ X.A X.B X.C X.D ]`. However, this factorization is still useful to "squeeze" some code, especially in lists like `meta.maintainers`. On the other hand, it becomes less justifiable in bigger scopes. This is especially true in cases like `with lib;` in the top of expression and in sets like `meta = with lib; { . . . }`. That being said, this patch removes most of example code in the current documentation. The exceptions are, for now - doc/functions/generators.section.md - doc/languages-frameworks/coq.section.md because, well, they are way more complicated, and I couldn't parse them mentally - yet another reason why `with` should be avoided!
| * | | python38: removeMartin Weinelt2024-03-05
| | | | | | | | | | | | | | | | | | | | | | | | The end of life for Python 3.8 is scheduled for 2024/10. As such it cannot be a part of NixOS 24.05, because its support cycle goes past that.
* | | | Merge master into haskell-updatesgithub-actions[bot]2024-03-05
|\| | |
| * | | doc: small fix for nightly in derivation snippet (#292688)Leon2024-03-04
| |/ /
| * | Merge pull request #293163 from Aleksanaa/doc/qtK9002024-03-04
| |\ \ | | |/ | |/| doc/qt: minor fixes
| | * doc/qt: minor fixesaleksana2024-03-04
| | |
* | | Merge master into haskell-updatesgithub-actions[bot]2024-03-01
|\| |
| * | doc: update docs for portableService, follow doc conventionsDS2024-02-29
| | |
| * | Merge pull request #290886 from DanielSidhion/update-ocitoolsSilvan Mosberger2024-02-29
| |\ \ | | | | | | | | doc: update docs in ociTools, follow doc conventions
| | * | doc: update docs in ociTools, follow doc conventionsDS2024-02-29
| | | |
* | | | Merge master into haskell-updatesgithub-actions[bot]2024-02-29
|\| | |
| * | | Merge pull request #291715 from DanielSidhion/document-private-keyDaniel Sidhion2024-02-28
| |\ \ \ | | | | | | | | | | doc: document publicly-known private key for darwin.linux-builder
| | * | | doc: document publicly-known private key for darwin.linux-builderDS2024-02-26
| | | | |
| * | | | doc: fix darwin-builder doc (#291518)yihuang2024-02-28
| | | | |
| * | | | Merge pull request #282886 from WxNzEMof/docker-tools-uidRobert Hensing2024-02-28
| |\ \ \ \ | | |/ / / | |/| | | Allow streaming layered containers with non-root Nix store
| | * | | Document the new streamLayeredImage parametersWxNzEMof2024-02-26
| | | | |
* | | | | Merge master into haskell-updatesgithub-actions[bot]2024-02-27
|\| | | |
| * | | | doc: Fix typo resulting in broken link in manualMihai Maruseac2024-02-26
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I was looking at https://nixos.org/manual/nixpkgs/stable/#buildpythonpackage-parameters to import a Python package and noticed that the link for the `hooks` in `pyproject` option is broken due to a typo (used <kbd>0</kbd> instead of <kbd>)</kbd>). Signed-off-by: Mihai Maruseac <mihai.maruseac@gmail.com>
* | | | haskellPackages: add dontCheckIf helperWolfgang Walther2024-02-26
| | | | | | | | | | | | | | | | | | | | Using this helper will prevent introducing problematic doCheck = condition overrides, which accidentally re-enable previously disabled tests.
* | | | Merge master into haskell-updatesgithub-actions[bot]2024-02-25
|\| | |
| * | | Merge branch 'master' into staging-nextWeijia Wang2024-02-23
| |\| |
| * | | Merge master into staging-nextgithub-actions[bot]2024-02-20
| |\ \ \