Merge pull request #272014 from ulrikstrid/ulrikstrid--wrangler-workerd-linux-fix

wrangler: Fix broken workerd on linux
This commit is contained in:
Ulrik Strid 2023-12-05 08:01:16 +01:00 committed by GitHub
commit 84142619ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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==";
};
});
});
}