diff options
author | Ulrik Strid <ulrik.strid@outlook.com> | 2023-12-04 12:15:58 +0100 |
---|---|---|
committer | Ulrik Strid <ulrik.strid@outlook.com> | 2023-12-04 12:16:42 +0100 |
commit | 14ef2bb6aec19753e4111a70ac7ac8c9d800cbe9 (patch) | |
tree | c61b55ab063c758b51ac6db5b6e3c770e9eb938c /pkgs/development/node-packages/overrides.nix | |
parent | ab3ea20adfe05a2328b4991612912ef7db67af83 (diff) |
wrangler: Fix broken workerd on linux
Diffstat (limited to 'pkgs/development/node-packages/overrides.nix')
-rw-r--r-- | pkgs/development/node-packages/overrides.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/development/node-packages/overrides.nix b/pkgs/development/node-packages/overrides.nix index ad6a9cd1371ec..9b7f2f7432267 100644 --- a/pkgs/development/node-packages/overrides.nix +++ b/pkgs/development/node-packages/overrides.nix @@ -429,5 +429,15 @@ final: prev: { # patch elf is trying to patch binary for sunos rm -r $out/lib/node_modules/wrangler/node_modules/@esbuild/sunos-x64 ''; + dependencies = oldAttrs.dependencies ++ lib.optional stdenv.isLinux ({ + name = "_at_cloudflare_slash_workerd-linux-64"; + packageName = "@cloudflare/workerd-linux-64"; + # Should be same version as workerd + version = "1.20231030.0"; + src = fetchurl { + url = "https://registry.npmjs.org/@cloudflare/workerd-linux-64/-/workerd-linux-64-1.20231030.0.tgz"; + sha512 = "2HUeRTvoCC17fxE0qdBeR7J9dO8j4A8ZbdcvY8pZxdk+zERU6+N03RTbk/dQMU488PwiDvcC3zZqS4gwLfVT8g=="; + }; + }); }); } |