Comments (5)
So the following command that works well on windows:
grpc_tools_node_protoc --plugin=protoc-gen-grpc=grpc_node_plugin --js_out=import_style=commonjs,binary:./proto/compiled --ts_out=./proto/compiled --grpc_out=./proto/compiled -I ./proto ./proto/*.proto
fails on nixos with ENOENT
when trying to call <rootDir>/node_modules/grpc-tools/bin/protoc
from polykey.
I have been trying to build grpc-tools
binaries directly from grpc-node/packages/grpc-tools but I am getting an error of /nix/store/hrkc2sf2883l16d5yq3zg0y339kfw4xv-binutils-2.31.1/bin/ld: cannot find -lgcc
from polykey.
It turns that this https://github.com/grpc/grpc-node/tree/master/packages/grpc-tools package is just a JS shim around a native compiled C++ set of executables.
In fact it doesn't event really use node-pre-gyp
, since that would require a binding.gyp
file to exist.
To actually package up https://github.com/grpc/grpc-node/tree/master/packages/grpc-tools we will need to write a C++ Nix derivation properly based on their CMake instructions and package that up, and then build a custom Nix expression for the package that actually needs to do a source patch on package.json
. In particular it needs to change the scripts:
"scripts": {
"install": "node-pre-gyp install",
"prepublishOnly": "git submodule update --init --recursive && node copy_well_known_protos.js"
},
So it only acquires it from a pre-existing executable.
But this is not really necessary for now, it's low priority since we can use protoc from windows.
from polykey.
Posted an upstream issue: NixOS/nixpkgs#93173
from polykey.
Closing on account of migration to gitlab
from polykey.
Related Issues (20)
- Setup `audit` domain for tracking user/action events and metrics HOT 14
- Change CLI Demo Gif to Polykey V3 Demo HOT 11
- Setting up `diagnostics` Domain for keeping track of some operational metrics
- `audit` Domain Metrics should be rolling and calculated per AuditEvent insertion
- `NodeManager` should update active connection's `connectedTime` in the `NodeGraph` on an interval
- Complete `NodeManager` tests from decentralised nodes refactor
- replace deprecated `testProp` with `test.prop`
- Limit initial SeedNode connections when entering the network
- Intermittent test failures due to Vaults and Tasks in CI HOT 2
- Vaults clone with name of a vault already existing fails HOT 2
- `NodeConnectionManager.createConnectionMultiple` should stagger connection attempts to reduce duplicate connections HOT 3
- Incremental/Progressive Update using the Network Version of Polykey Agents HOT 4
- CI/CD Commit/Tag Flow Consolidation HOT 1
- Vaults Push Dataflow
- Audit Metric Consolidation HOT 2
- Verify IPv6 NAT Punchthrough Behaviour HOT 8
- Redesign vault clone name conflict handling HOT 2
- Background Discovery Mechanisms HOT 7
- General `Discovery` fixes and features HOT 15
- NodeId to Fort/Castle Icon Generation Ala CryptoKitties or CryptoForts NFTs HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polykey.