Commit 279d1169 authored by Florian Franzen's avatar Florian Franzen
Browse files

runtimes: switch to naersk

parent fd098ace
Pipeline #9555 failed with stages
in 54 seconds
{ polkadot-spec, rustWasmPlatform }:
{ polkadot-spec, naerskWasm }:
rustWasmPlatform.buildRustPackage rec {
name = "hostapi-runtime-${version}.compact.wasm";
naerskWasm.buildPackage rec {
name = "hostapi-runtime";
version = builtins.substring 0 7 polkadot-spec.rev;
src = polkadot-spec;
src = "${polkadot-spec}/test/runtimes/hostapi";
sourceRoot = "source/test/runtimes/hostapi";
overrideMain = _: {
name = "hostapi-runtime-${version}.compact.wasm";
cargoSha256 = "1byjhyqa9mf8a810p321kyxkmyaqa8myi1pgf6nv1p0735hqjmda";
installPhase = ''
cp target/x86_64-unknown-linux-gnu/release/wbuild/hostapi-runtime/hostapi_runtime.compact.wasm $out
'';
installPhase = ''
cp target/release/wbuild/hostapi-runtime/hostapi_runtime.compact.wasm $out
'';
};
}
{ polkadot-spec, rustWasmPlatform, protobuf }:
{ polkadot-spec, naerskWasm, protobuf }:
rustWasmPlatform.buildRustPackage {
naerskWasm.buildPackage {
pname = "tester-runtime";
version = builtins.substring 0 7 polkadot-spec.rev;
src = polkadot-spec;
sourceRoot = "source/test/runtimes/tester";
cargoSha256 = "0vsm6h49x2biglyp93hwz1ybq6ljasw1lsy0bsw687nlg32czwfc";
buildInputs = [ protobuf ];
src = "${polkadot-spec}/test/runtimes/tester";
# Needed to build rust-libp2p
PROTOC = "${protobuf}/bin/protoc";
PROTOC_INCLUDE = "${protobuf}/include";
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment