@norskvideo/ctl-dev-kit 0.2.66 → 0.2.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ctl-shell.nix +20 -2
- package/build/flake.nix +1 -1
- package/build/flake.sdk-app.nix +4 -4
- package/package.json +5 -5
package/build/ctl-shell.nix
CHANGED
|
@@ -9,6 +9,24 @@
|
|
|
9
9
|
# need GitHub auth in every shell and CI runner.
|
|
10
10
|
{ pkgs, biome }:
|
|
11
11
|
let
|
|
12
|
+
# Bun from its own nixpkgs pin, so ctl and every product run one Bun, and
|
|
13
|
+
# bumping it is one edit here (the dev-kit sync carries it to the products)
|
|
14
|
+
# rather than moving the main nixpkgs pin, and with it Chromium and every
|
|
15
|
+
# other tool. Fetched by hash, so each repo shares one store path.
|
|
16
|
+
#
|
|
17
|
+
# 1.4.2: 1.3.13's node:http2 client segfaulted in its HPACK encoder
|
|
18
|
+
# (lshpack.HPACK.encode from H2FrameParser.request) — norsk-mgr's gRPC client
|
|
19
|
+
# to the Manager, killed mid-drain and mid-migration in the nightly e2e.
|
|
20
|
+
# Keep each repo's package.json "packageManager" (its image's Bun) on the
|
|
21
|
+
# same version. That nixpkgs no longer builds x86_64-darwin, which keeps the
|
|
22
|
+
# main pin's.
|
|
23
|
+
bun =
|
|
24
|
+
if pkgs.stdenv.hostPlatform.system == "x86_64-darwin" then pkgs.bun
|
|
25
|
+
else (import (builtins.fetchTarball {
|
|
26
|
+
url = "https://github.com/NixOS/nixpkgs/archive/e7439b6b14ad3cc35d05608ebca9bce01a25f5f8.tar.gz"; # bun 1.4.2
|
|
27
|
+
sha256 = "19y4py973w62z4qb7gzn0chjs67ihxy8rbjb7g71iyk8yz7z5k8z";
|
|
28
|
+
}) { inherit (pkgs.stdenv.hostPlatform) system; }).bun;
|
|
29
|
+
|
|
12
30
|
# Playwright doc-guide browser. nix-pinned headless Chromium needs a real X
|
|
13
31
|
# display on a truly headless box (page.fill silently no-ops on plain HTML
|
|
14
32
|
# inputs; some pages crash the renderer). Ubuntu's apt Xvfb is too old for
|
|
@@ -42,7 +60,7 @@ let
|
|
|
42
60
|
|
|
43
61
|
buildTools = [
|
|
44
62
|
biome
|
|
45
|
-
|
|
63
|
+
bun
|
|
46
64
|
pkgs.nodejs # @biomejs/biome's bin is a JS wrapper, not the binary — it is
|
|
47
65
|
# what reads BIOME_BINARY and execs the nix build. Something has
|
|
48
66
|
# to *parse* that wrapper first, so a modern node has to be on
|
|
@@ -91,7 +109,7 @@ let
|
|
|
91
109
|
};
|
|
92
110
|
in
|
|
93
111
|
{
|
|
94
|
-
inherit browserInputs browserHook buildTools mkCtl shell;
|
|
112
|
+
inherit browserInputs browserHook buildTools bun mkCtl shell;
|
|
95
113
|
|
|
96
114
|
# The Studio-product shells:
|
|
97
115
|
# default / dev -> build tools + the pinned norsk-ctl daemon on PATH
|
package/build/flake.nix
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
description = "norsk-ctl product build + dev shell";
|
|
20
20
|
|
|
21
21
|
inputs = {
|
|
22
|
-
nixpkgs.url = "github:NixOS/nixpkgs/d233902339c02a9c334e7e593de68855ad26c4cb"; # nixpkgs-unstable 2026-05-15,
|
|
22
|
+
nixpkgs.url = "github:NixOS/nixpkgs/d233902339c02a9c334e7e593de68855ad26c4cb"; # nixpkgs-unstable 2026-05-15, chromium 148.0.7778.167 (bun comes from its own pin in nix/ctl-shell.nix)
|
|
23
23
|
# Biome must match the version pinned in package.json (@biomejs/biome 2.5.5)
|
|
24
24
|
# exactly: 2.4.x can't parse this repo's biome.json (`rules.preset` is a
|
|
25
25
|
# 2.5 key) and any other 2.5.x emits a version-mismatch info that breaks the
|
package/build/flake.sdk-app.nix
CHANGED
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
# result belongs to a commit, and moved nightly by bump.yml. Decision: bun for tooling (install / build /
|
|
14
14
|
# test), Node for the shipped runtime (the SDK's blessed runtime).
|
|
15
15
|
#
|
|
16
|
-
# nixpkgs is pinned to the same rev the Studio flake uses, so
|
|
17
|
-
# fleet's
|
|
16
|
+
# nixpkgs is pinned to the same rev the Studio flake uses, so the store is
|
|
17
|
+
# shared; bun is the fleet's, from its own pin in nix/ctl-shell.nix.
|
|
18
18
|
description = "norsk-ctl sdk-app product dev shell (bun tooling + node runtime)";
|
|
19
19
|
|
|
20
20
|
inputs = {
|
|
21
|
-
nixpkgs.url = "github:NixOS/nixpkgs/d233902339c02a9c334e7e593de68855ad26c4cb"; # nixpkgs-unstable 2026-05-15
|
|
21
|
+
nixpkgs.url = "github:NixOS/nixpkgs/d233902339c02a9c334e7e593de68855ad26c4cb"; # nixpkgs-unstable 2026-05-15 (bun comes from its own pin in nix/ctl-shell.nix)
|
|
22
22
|
# Biome must match the version pinned in package.json (@biomejs/biome 2.5.5)
|
|
23
23
|
# exactly; the node_modules biome binary is glibc-linked and can't run on
|
|
24
24
|
# NixOS, so `bun run lint` execs this nix build via BIOME_BINARY. Keep this
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
ffmpegFull = pkgs.ffmpeg-full;
|
|
46
46
|
tools = [
|
|
47
47
|
biome # `bun run lint` execs this via BIOME_BINARY
|
|
48
|
-
|
|
48
|
+
ctlShell.bun # tooling: install / build / test; its own pin, shared with ctl and every product
|
|
49
49
|
pkgs.nodejs # the shipped runtime (bin/run -> node lib/index.js); also
|
|
50
50
|
# parses @biomejs/biome's JS wrapper that reads BIOME_BINARY
|
|
51
51
|
pkgs.git
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@norskvideo/ctl-dev-kit",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.68",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./create-product": "./create-product/create-product.ts",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@norskvideo/ctl-oas-to-ts": "^0.1.0",
|
|
41
|
-
"@norskvideo/norsk-sdk": "1.3.1-2026-10-
|
|
42
|
-
"@norskvideo/norsk-studio": "1.30.0-2026-10-
|
|
43
|
-
"@norskvideo/norsk-studio-builder": "1.30.0-2026-10-
|
|
44
|
-
"@norskvideo/norsk-studio-built-ins": "1.30.0-2026-10-
|
|
41
|
+
"@norskvideo/norsk-sdk": "1.3.1-2026-10-10-c587f1cc",
|
|
42
|
+
"@norskvideo/norsk-studio": "1.30.0-2026-10-10-c2e37ae9",
|
|
43
|
+
"@norskvideo/norsk-studio-builder": "1.30.0-2026-10-10-c2e37ae9",
|
|
44
|
+
"@norskvideo/norsk-studio-built-ins": "1.30.0-2026-10-10-c2e37ae9",
|
|
45
45
|
"@playwright/test": "^1.59.0",
|
|
46
46
|
"@types/bun": "latest",
|
|
47
47
|
"@types/cors": "^2.8.17",
|