mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-11 23:19:05 +03:00
protoc-gen-es: fix missing node_modules directories (#339841)
This commit is contained in:
commit
7fa0c16b94
@ -29,6 +29,13 @@ buildNpmPackage rec {
|
||||
npm run --workspace=packages/protoplugin build
|
||||
'';
|
||||
|
||||
# copy npm workspace modules while properly resolving symlinks
|
||||
# TODO: workaround can be removed once this is merged: https://github.com/NixOS/nixpkgs/pull/333759
|
||||
postInstall = ''
|
||||
rm -rf $out/lib/node_modules/protobuf-es/node_modules/@bufbuild
|
||||
cp -rL node_modules/@bufbuild $out/lib/node_modules/protobuf-es/node_modules/
|
||||
'';
|
||||
|
||||
passthru.updateScript = ./update.sh;
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user