Skip to content

Commit f06f6d7

Browse files
committed
pkgs/historical-modules: Add bun 1.2.16 and update upgrade-map
1 parent 929b7af commit f06f6d7

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

pkgs/historical-modules/default.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ let
2424
displayVersion = "1.1.45";
2525
};
2626
}
27+
{
28+
moduleId = "bun-1.2";
29+
commit = "a3a6925";
30+
overrides = {
31+
displayVersion = "1.2.16";
32+
};
33+
}
2734
{
2835
moduleId = "clojure-1.11";
2936
commit = "4327245815e8500233ed3af1cbb674bd147f673b";

pkgs/modules/bun/default.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# NOTE: Unlike Node.js, nixpkgs doesn't provide versioned bun attributes (e.g., bun_1_3).
2+
# This module uses pkgs.bun which tracks the latest version.
3+
#
4+
# When nixpkgs updates bun to a new major.minor version:
5+
# 1. Add the previous version to pkgs/historical-modules/default.nix, pinned to the
6+
# commit before the nixpkgs update
7+
# 2. Update pkgs/upgrade-map/default.nix to chain the old version to the new one
18
{ bun }:
29
{ pkgs, lib, ... }:
310

pkgs/upgrade-map/default.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ let
1010
"bun-0.5" = "bun-0.6";
1111
"bun-0.6" = "bun-0.7";
1212
"bun-0.7" = "bun-1.0";
13+
"bun-1.0" = "bun-1.1";
14+
"bun-1.1" = "bun-1.2";
15+
"bun-1.2" = "bun-1.3";
1316
"dart-3.0" = "dart-3.1";
1417
"dart-3.1" = "dart-3.2";
1518
"dart-3.2" = "dart-3.3";

0 commit comments

Comments
 (0)