Files
2026-01-05 21:15:21 +01:00

18 lines
483 B
Nix

{ pkgs, inputs, ... }:
let
unstable = import inputs.unstable { system = pkgs.stdenv.system; };
in {
scripts.patch-workerd.exec = ''
find node_modules/.pnpm/@cloudflare+workerd-linux-64@*/node_modules/@cloudflare/workerd-linux-64/bin/ -name workerd -print0 | xargs -I {} -0 patchelf --set-interpreter "$(<$NIX_CC/nix-support/dynamic-linker)" {}
'';
languages.javascript = {
enable = true;
pnpm = {
enable = true;
package = unstable.pnpm;
};
};
}