This repository was archived by the owner on Aug 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +100
-38
lines changed Expand file tree Collapse file tree 3 files changed +100
-38
lines changed Original file line number Diff line number Diff line change 2020 strategy :
2121 matrix :
2222 output :
23+ - chat-client-cpp
2324 - chat-client-rust
2425 - chat-server-rust
2526 - cryptle-rust
Original file line number Diff line number Diff line change 2222
2323 demos . chat-client . conf = ./demos/chat-client/Enarx.toml ;
2424
25+ demos . chat-client . cpp . src = ./demos/chat-client/c++/main.cpp ;
2526 demos . chat-client . rust . src = ./demos/chat-client/rust ;
2627 demos . chat-client . rust . package = cargoPackage ./demos/chat-client/rust/Cargo.toml ;
2728
100101 rustc = rust ;
101102 } ;
102103 in {
104+ chat-client-cpp-wasm =
105+ final . pkgsCross . wasi32 . runCommandCC "chat-client" {
106+ pname = "chat-client-cpp" ;
107+ version = "0.1.0" ;
108+ }
109+ ''
110+ mkdir -p "$out/bin"
111+ $CXX -Wall -pedantic ${ demos . chat-client . cpp . src } \
112+ -o "$out/bin/chat-client.wasm"
113+ '' ;
114+
115+ chat-client-cpp = buildEnarxPackage {
116+ inherit ( demos . chat-client ) conf ;
117+ inherit ( final ) pkgs ;
118+ inherit ( final . chat-client-cpp-wasm ) pname version ;
119+
120+ wasm = "${ final . chat-client-cpp-wasm } /bin/chat-client.wasm" ;
121+ } ;
122+
103123 chat-client-rust-wasm = naersk-lib . buildPackage {
104124 inherit ( demos . chat-client . rust ) src ;
105125 inherit ( demos . chat-client . rust . package ) version ;
286306 packages = with pkgs ;
287307 {
288308 inherit
309+ chat-client-cpp
310+ chat-client-cpp-wasm
289311 chat-client-rust
290312 chat-client-rust-wasm
291313 chat-server-rust
You can’t perform that action at this time.
0 commit comments