Skip to content

Commit 4c2278d

Browse files
committed
chore: remove comments
1 parent a72cf6c commit 4c2278d

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

flake.nix

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@
1818
versionsData = builtins.fromJSON (builtins.readFile ./versions.json);
1919
versionMap = versionsData.versions;
2020

21-
# The default version shown as `packages.<system>.default`.
22-
# Set "default" in versions.json to override; falls back to "22.22".
2321
defaultVersion = versionsData.default or "22.22";
24-
25-
# Converts "22.22" → "22_22" for use as Nix attribute names.
2622
sanitizeVersion = builtins.replaceStrings [ "." ] [ "_" ];
2723

2824
systems = [
@@ -96,8 +92,6 @@
9692
# Create yarn packages bundled with the specific node version.
9793
# Uses the version-pinned nixpkgs to ensure yarn/node compatibility.
9894
# Falls back to latest nixpkgs if yarn is absent from the pinned rev.
99-
# yarn.override is a callable attrset (same structure as pnpm); __functionArgs
100-
# is checked before calling to guard against future packaging changes.
10195
yarnPackages = nixpkgs.lib.mapAttrs' (
10296
version: pkg:
10397
let
@@ -130,8 +124,7 @@
130124
# it; otherwise we use pnpm as-is.
131125
#
132126
# Falls back to latest nixpkgs pnpm only when the pinned rev has no pnpm at
133-
# all (rare, but guards against evaluation errors). The fallback also applies
134-
# the same __functionArgs guard for consistency.
127+
# all.
135128
pnpmPackages = nixpkgs.lib.mapAttrs' (
136129
version: pkg:
137130
let
@@ -151,9 +144,6 @@
151144

152145
pnpmPkg =
153146
if builtins.isNull pinnedPnpm then
154-
# Pinned rev has no pnpm at all; fall back to unstable nixpkgs.
155-
# Apply the same __functionArgs guard — pkgs is always modern but
156-
# defensive coding avoids future breakage.
157147
let
158148
fallbackOverride = pkgs.pnpm.override or null;
159149
canOverrideFallback =
@@ -170,8 +160,6 @@
170160
nixpkgs.lib.nameValuePair ("pnpm_" + sanitizeVersion version) (
171161
pkgs.symlinkJoin {
172162
name = "pnpm-" + version;
173-
# pkg first: symlinkJoin uses lndir which skips existing symlinks,
174-
# so the first path wins on conflict. pkg must win for node/npm/npx.
175163
paths = [
176164
pkg
177165
pnpmPkg

0 commit comments

Comments
 (0)