@norskvideo/ctl-dev-kit 0.1.14 → 0.1.15

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.
Files changed (2) hide show
  1. package/build/flake.nix +17 -1
  2. package/package.json +1 -1
package/build/flake.nix CHANGED
@@ -21,9 +21,15 @@
21
21
 
22
22
  inputs = {
23
23
  nixpkgs.url = "github:NixOS/nixpkgs/d233902339c02a9c334e7e593de68855ad26c4cb"; # nixpkgs-unstable 2026-05-15, bun 1.3.13
24
+ # Biome must match the version pinned in package.json (@biomejs/biome 2.5.5)
25
+ # exactly: 2.4.x can't parse this repo's biome.json (`rules.preset` is a
26
+ # 2.5 key) and any other 2.5.x emits a version-mismatch info that breaks the
27
+ # "0 diagnostics" bar. The main nixpkgs pin only ships 2.4.14, so biome
28
+ # comes from its own pin -- bump this one whenever package.json's biome moves.
29
+ nixpkgs-biome.url = "github:NixOS/nixpkgs/a5cbcfe954791221bfffe2307f7d1a1bf61a871e"; # biome 2.5.5
24
30
  };
25
31
 
26
- outputs = { self, nixpkgs }:
32
+ outputs = { self, nixpkgs, nixpkgs-biome }:
27
33
  let
28
34
  systems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
29
35
  forAllSystems = f: builtins.listToAttrs (map (s: { name = s; value = f s; }) systems);
@@ -72,7 +78,14 @@
72
78
  devShells = forAllSystems (system:
73
79
  let
74
80
  pkgs = import nixpkgs { inherit system; };
81
+ # Biome from its own pin so `bun run lint` works on NixOS: the
82
+ # node_modules @biomejs/biome binary is glibc-linked and can't run
83
+ # here. Each shell exports BIOME_BINARY so the npm wrapper execs this
84
+ # nix build instead -- no patchelf, no per-command env var. Keep the
85
+ # pin in step with package.json's @biomejs/biome version.
86
+ biome = (import nixpkgs-biome { inherit system; }).biome;
75
87
  buildTools = [
88
+ biome
76
89
  pkgs.bun
77
90
  pkgs.cargo # builds the native product-signer addon (probe/native)
78
91
  pkgs.rustc
@@ -83,14 +96,17 @@
83
96
  # Everyday dev shell — build tools + the pinned norsk-ctl daemon.
84
97
  # `nix develop` and `nix develop .#dev` are equivalent.
85
98
  default = pkgs.mkShell {
99
+ BIOME_BINARY = "${biome}/bin/biome";
86
100
  buildInputs = buildTools ++ [ (mkCtl system) ];
87
101
  };
88
102
  dev = pkgs.mkShell {
103
+ BIOME_BINARY = "${biome}/bin/biome";
89
104
  buildInputs = buildTools ++ [ (mkCtl system) ];
90
105
  };
91
106
  # Lean shell for CI (build-image / integration) — no ctl fetch, so
92
107
  # image builds never depend on the ctl binary channel.
93
108
  build = pkgs.mkShell {
109
+ BIOME_BINARY = "${biome}/bin/biome";
94
110
  buildInputs = buildTools;
95
111
  };
96
112
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norskvideo/ctl-dev-kit",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./package.json": "./package.json",