Commit Graph

110 Commits

Author SHA1 Message Date
Gergő Gutyina
49ffcc65f9 fetchPnpmDeps: remove fetcherVersion = 1 and 2 (#523933) 2026-06-03 09:03:19 +00:00
Ross Smyth
3b8d94ca86 doc: Add pnpmBuildHook 2026-06-02 13:53:11 -04:00
Aliaksandr
2c01146d7d fetchPnpmDeps: throw on removed fetcherVersion = 1 and 2
fetcherVersion = 1 and 2 were deprecated in the 26.05 release and
scheduled for removal in 26.11. Remove them from supportedFetcherVersions
and replace the deprecation warning with a hard throw that points users
at the migration to fetcherVersion = 3.

No in-tree package still uses fetcherVersion = 1 or 2. The now-unreachable
v1/v2 code paths are removed in a follow-up commit.

Assisted-by: claude-code with claude-opus-4-7[1m]-xhigh
2026-05-31 23:50:21 +03:00
Maciej Krüger
f2ba699f37 fetchPnpmDeps: fix reproducibility of pnpm v11 store index
The pnpm v11 store uses a SQLite database (index.db) whose binary format
is non-deterministic across platforms (version-valid-for number, etc).
This caused hash mismatches when building the same pnpmDeps on different
machines despite identical logical content.

Fix by dumping the SQLite database to a text SQL file during the fetch
phase and reconstructing it during the build phase. This ensures the
stored representation is fully deterministic.

Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Co-authored-by: Gergő Gutyina <gutyina.gergo.2@gmail.com>
2026-05-23 22:13:33 +02:00
nixpkgs-ci[bot]
167c482ea6 Merge master into staging-next 2026-05-14 00:41:55 +00:00
Gergő Gutyina
bc164958aa fetchPnpmDeps: deprecate fetcherVersion = 2, schedule removal for 26.11 (#518360) 2026-05-13 21:29:30 +00:00
K900
c11500a253 Merge remote-tracking branch 'origin/master' into staging-next 2026-05-12 22:39:18 +03:00
Sefa Eyeoglu
7d318dfe3b pnpm_11: init at 11.1.0
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2026-05-11 23:13:15 +02:00
Aliaksandr
f472a6385b fetchPnpmDeps: deprecate fetcherVersion = 2
Extend the existing v1 deprecation warning to also fire for
`fetcherVersion = 2`, since callers should migrate directly to
`fetcherVersion = 3`. Both pre-v3 versions now share a single
`lib.warnIf` keyed on `fetcherVersion < 3` and produce a message
parameterised by the offending version.

Consolidate the manual's version-history entries: the per-item
**Deprecated** and **Recommended** labels are replaced by a single
sentence above the list noting that v3 is recommended and v1/v2 are
scheduled for removal.

Add a release note mirroring the existing v1 entry.
2026-05-11 18:02:36 +03:00
nixpkgs-ci[bot]
3897d11ea5 Merge staging-next into staging 2026-04-26 18:16:05 +00:00
Aliaksandr
6b6d15b820 fetchPnpmDeps: deprecate fetcherVersion = 1, schedule removal for 26.11
fetcherVersion = 1 was kept around for backwards compatibility while
callers migrated to 2/3.

Emit a `lib.warnIf` warning pointing at the affected pname whenever v1
is used.

After 26.11 ships, a follow-up PR should drop 1 from
`supportedFetcherVersions` and clean up the dead v1 code paths in
default.nix, pnpm-config-hook.sh and serve.nix.

Also rewrite the manual section to recommend fetcherVersion = 3 for new
packages and mark v1 as deprecated/scheduled-for-removal in the
version history.

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2026-04-26 18:39:08 +03:00
nixpkgs-ci[bot]
b23e6c6674 Merge staging-next into staging 2026-04-26 12:16:51 +00:00
Doron Behar
7add9a7657 yarn2nix: remove more mentions of it 2026-04-26 09:50:54 +03:00
Doron Behar
effc9ce2e6 doc/javascript: update link to plausible example 2026-04-26 09:47:36 +03:00
nixpkgs-ci[bot]
b17737e3bc Merge staging-next into staging 2026-04-26 06:40:00 +00:00
dish
b8d4d82697 doc/javascript: remove yarn2nix docs and redirect 2026-04-25 18:22:39 -04:00
Antoine du Hamel
ca4100c3c0 nodejs_20: mark as insecure 2026-04-20 18:07:36 +02:00
Philip Taron
16d53f40e2 nodePackages{,_latest}: drop and throw (#496365) 2026-03-29 23:52:00 +00:00
dish
07f4288475 nodePackages{,_latest}: remove and throw
We are so back
2026-03-24 14:45:31 -04:00
Ross Smyth
41d8cf69e5 doc: Add documentation on npmHooks.npmBuildHook 2026-02-19 14:16:28 -05:00
Sefa Eyeoglu
d925565179 fetchPnpmDeps,pnpmConfigHook: move to top-level attribute
move pnpm.{fetchDeps,configHook} to fetchPnpmDeps and pnpmConfigHook
respectively. Also adds aliases to the former package-level attributes.

Additionally, pnpmConfigHook does not propagate pnpm anymore, to make
changing pnpm versions easier.

This brings pnpm in line with the other Node.js/JavaScript tooling in
nixpkgs.

This doesn't cause any rebuilds.

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2025-12-17 23:43:59 +01:00
Gutyina Gergő
1f37f08091 pnpm.fetchDeps: output a tarball from fetcherVersion 3 2025-12-14 19:15:15 +01:00
Gergő Gutyina
630120119a doc: fix example (#435473) 2025-12-07 11:46:03 +00:00
Tomodachi94
7bf3aa9d0d doc/javascript: move nodePackages information back to README.md
Adding new packages here is discouraged, for reasons enumerated in
https://github.com/NixOS/nixpkgs/issues/229475, so let's move this
(mostly developer-facing) documentation back into its original location
in pkgs/development/node-packages/README.md.
2025-11-29 20:34:41 -08:00
Yiyu Zhou
eafa2f536f doc: fix examples 2025-10-19 23:15:58 -07:00
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