File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 1
- { self , ... } :
1
+ { lib , self , ... } :
2
2
{
3
3
flake . overlays . crateOverrides = final : prev : {
4
4
defaultCrateOverrides = prev . defaultCrateOverrides
5
5
// self . tools . ${ prev . system } . crateOverrides ;
6
6
} ;
7
7
perSystem = { pkgs , ... } : {
8
8
tools . crateOverrides = {
9
+ wasm-crate = attrs : {
10
+ target = lib . systems . examples . wasm32-unknown-none ;
11
+ globalRustcOpts = [ "-C" "panic=abort" ] ;
12
+ postInstall = ( attrs . postInstall or "" ) + ''
13
+ mkdir -p $out
14
+ cp -r target/lib/*.wasm $out/
15
+ '' ;
16
+ } ;
17
+ unstable-opts-crate = attrs : {
18
+ extraRustcOpts = ( attrs . extraRustcOpts or [ ] ) ++ [
19
+ "-Z" "unstable-options"
20
+ ] ;
21
+ } ;
9
22
openssl-sys = attrs : {
10
23
nativeBuildInputs = [ pkgs . pkg-config ] ;
11
24
buildInputs = [ pkgs . openssl ] ;
You can’t perform that action at this time.
0 commit comments