Commit graph

85 commits

Author SHA1 Message Date
K900 4999ae577c Merge remote-tracking branch 'origin/master' into staging-next 2025-09-30 21:47:55 +03:00
NAHO 854c5a5460
doc: remove optional builtins prefixes from prelude functions
Remove optional builtins prefixes from prelude functions by running:

    builtins=(
      abort
      baseNameOf
      break
      derivation
      derivationStrict
      dirOf
      false
      fetchGit
      fetchMercurial
      fetchTarball
      fetchTree
      fromTOML
      import
      isNull
      map
      null
      placeholder
      removeAttrs
      scopedImport
      throw
      toString
      true
    )

    fd --type file . doc --exec-batch sed --in-place --regexp-extended "
      s/\<builtins\.($(
        printf '%s\n' "${builtins[@]}" |
          paste --delimiter '|' --serial -
      ))\>/\1/g
    "

    nix fmt
2025-09-30 09:02:03 +02:00
nixpkgs-ci[bot] eea9839c6e
Merge staging-next into staging 2025-09-14 00:17:55 +00:00
Ben Siraphob 1e82a2f358
doc: fix typos 2025-09-09 13:14:34 +07:00
polyfloyd 3eea28e982 doc/javascript: Warn against the use of mkYarnPackage 2025-08-29 13:12:56 +02:00
Ben Siraphob cc5b731ed3
doc: fix typos 2025-08-27 11:46:26 -07:00
Wolfgang Walther 62fe016519
treewide: run treefmt with mdcr/nixfmt 2025-07-24 13:52:31 +02:00
Sefa Eyeoglu e9d0c4af41
doc: adjust pnpm.fetchDeps parameter order
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2025-07-15 15:09:16 +02:00
Gutyina Gergő 71e3980f18
pnpm.fetchDeps: ensure consistent permissions for fetcherVersion >=2
Co-authored-by: Oliver Breitwieser <oliver@breitwieser.eu>
2025-07-14 11:51:38 +02:00
Gutyina Gergő fd61e1c200
pnpm.fetchDeps: introduce versioning 2025-07-14 11:50:27 +02:00
Johannes Kirschbauer dbd0345e71
Revert "Feat/build deno package" 2025-06-17 18:01:14 +02:00
aMOPel 32a9eaae70 doc: added more info and fixed a bug 2025-06-06 07:51:39 +02:00
aMOPel 9db1e30da8 fix for the readme cli build test 2025-06-05 15:01:33 +02:00
aMOPel 9dae270449 minor fixes 2025-06-05 13:56:08 +02:00
aMOPel 02b2beed9e added test case and improved api 2025-06-03 17:39:55 +02:00
aMOPel 2335220e54 nits 2025-06-03 12:49:35 +02:00
aMOPel 2857128ddd doc: refactored argument documention by using definition lists 2025-06-03 12:40:50 +02:00
aMOPel c88d10c806 Update doc/languages-frameworks/javascript.section.md
Co-authored-by: Valentin Gagarin <valentin@gagarin.work>
2025-06-03 12:40:50 +02:00
aMOPel 0ffa7b88a2 Update doc/languages-frameworks/javascript.section.md
Co-authored-by: Valentin Gagarin <valentin@gagarin.work>
2025-06-03 12:40:50 +02:00
aMOPel 287b94f279 Update doc/languages-frameworks/javascript.section.md
Co-authored-by: Valentin Gagarin <valentin@gagarin.work>
2025-06-03 12:40:50 +02:00
aMOPel d1e5782bba Update doc/languages-frameworks/javascript.section.md
Co-authored-by: Valentin Gagarin <valentin@gagarin.work>
2025-06-03 12:40:50 +02:00
aMOPel 486c503430 doc: added docs for buildDenoPackage 2025-06-03 12:39:39 +02:00
Niklas Hambüchen ee6c2bd2eb doc: Fix missing pre/post hooks everywhere 2025-05-24 13:22:41 +00:00
adisbladis 4166518a86
doc/importNpmLock.buildNodeModules: Add note regarding package-lock-only (#393699) 2025-05-02 20:50:31 +02:00
Florian Klink b25eeeb6d8 doc: document Yarn v3/v4 infrastructure
Move the existing `yarnConfigHook`, `yarnBuildHook` and
`yarnInstallHook` documentation below a Yarn v1 section.

Also move the documentation for the deprecated `yarn2nix` there, which
is Yarn v1 only.

Co-Authored-By: Yureka <yureka@cyberchaos.dev>
2025-04-23 17:25:20 +03:00
Pol Dellaiera 3218a4204f doc: do not reuse pname 2025-04-21 07:02:49 +02:00
Pol Dellaiera ac04a5c492 doc: replace rev with tag 2025-04-21 07:02:49 +02:00
Pol Dellaiera b4515ff6c2 doc: use finalAttrs pattern 2025-04-21 07:02:49 +02:00
Pol Dellaiera 47f000d991 doc: add missing phase hooks 2025-04-21 07:02:49 +02:00
Pol Dellaiera 540ddbcf2f doc: use writableTmpDirAsHomeHook 2025-04-21 07:02:46 +02:00
Pol Dellaiera bcea0cf344 doc: update Nix code snippets format
Command: `mdcr --config doc/tests/mdcr-config.toml doc/`
2025-04-17 01:30:34 +02:00
Pol Dellaiera 5d979e79ce doc: fix various nix snippets 2025-04-17 01:30:34 +02:00
Winter a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00
Pol Dellaiera 65a333600d treewide: replace rev with tag 2025-04-07 16:57:22 +02:00
adisbladis 6900384c1b doc/importNpmLock.buildNodeModules: Add note regarding package-lock-only
When using `buildNodeModules` to create `node_modules` commands like `npm install` & `npm add` that writes packages & executables needs to be used with `--package-lock-only`.
2025-03-28 11:12:15 +01:00
Pyrox 09cec0f560
pnpm.fetchDeps: pnpmWorkspace -> pnpmWorkspaces 2024-10-24 15:37:30 -04:00
lelgenio ab4dc6ca78 doc/javascript: fix example usage of yarn hooks 2024-09-28 20:07:11 -03:00
Johannes Kirschbauer 71f01ce1fc
Doc/importNpmLock: general improvements (#340019)
Co-authored-by: Valentin Gagarin <valentin@gagarin.work>
2024-09-07 07:59:02 +02:00
lelgenio 7783e118af yarnInstallHook: init 2024-09-04 11:15:47 -03:00
adisbladis 9c7ff7277c
importNpmLock.buildNodeModules: init
`importNpmLock.buildNodeModules` returns a derivation with a pre-built `node_modules` directory, as imported by `importNpmLock`.
This is to be used together with `importNpmLock.hooks.linkNodeModulesHook` to facilitate `nix-shell`/`nix develop` based development workflows:

```nix
pkgs.mkShell {
  packages = [
    importNpmLock.hooks.linkNodeModulesHook
    nodejs
  ];

  npmDeps = importNpmLock.buildNodeModules {
    npmRoot = ./.;
    inherit nodejs;
  };
}
```
will create a development shell where a `node_modules` directory is created & packages symlinked to the Nix store when activated.

This code is adapted from https://github.com/adisbladis/buildNodeModules
2024-08-29 06:12:07 -07:00
Pyrox 875c9f044f pnpm.fetchDeps: Add workspaces support and support for custom pnpm configuration commands
Solves #316908
2024-08-05 18:36:54 +03:00
Peder Bergebakken Sundt 99dec1f6b0 treewide: fix doc typos
Done with `fd \\\.md$ . --type f -x typos --write-changes`
2024-07-26 00:55:13 +02:00
Alexis Hildebrandt ab42ca141a doc: Remove indefinite article and ending period from example meta.description
so that meta.description examples shown in the documentation
align with recommendations given in the "Meta attributes" section
in pkgs/README.md.

The changes were made with the following commands:
nix run nixpkgs#silver-searcher -- -l0 'description\s*=\s*"([Aa]n?|[Tt]he)\s' doc \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee '/description/s/"([Aa]n?|[Tt]he)\s(.)/"\U\2/'
nix run nixpkgs#silver-searcher -- -l0 'description\s*=\s*".*\."' doc \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee '/description/s/\."/"/'
2024-07-20 09:18:42 +02:00
Doron Behar ee7cfec5aa doc/javascript: document yarn{Config,Build}Hook 2024-07-10 09:39:03 +03:00
Doron Behar c704c02956 doc/javascript: pnpm: mention lack of monorepos/workspaces support 2024-06-03 17:09:22 +03:00
Sefa Eyeoglu 74f5ff78bf
pnpm.fetchDeps: init
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-06-02 19:56:11 +02:00
Eli Flanagan 693c7d91c9
doc: lowercase npm name
npm, Inc documentation asks to use lowercase. Their documentation also has consistent lowercase usage. e.g. <https://docs.npmjs.com/about-npm>
2024-03-29 11:10:49 -04:00
Janne Heß fcc95ff817 treewide: Fix all Nix ASTs in all markdown files
This allows for correct highlighting and maybe future automatic
formatting. The AST was verified to work with nixfmt only.
2024-03-28 09:28:12 +01:00
Eli Flanagan f6b397eed0
doc: improve javascript conventions (#298127)
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.
2024-03-22 14:36:09 -07:00
Doron Behar 290c16532c doc/mkYarnPackage: document better distPhase and doDist 2024-03-18 11:29:47 +02:00