File tree Expand file tree Collapse file tree 4 files changed +7
-23
lines changed Expand file tree Collapse file tree 4 files changed +7
-23
lines changed Original file line number Diff line number Diff line change @@ -71,9 +71,7 @@ altogether: it compiles the dependency from scratch to let your project
71
71
leverage Nix caching. This will mean that you'll have to wait for an initial
72
72
compilation in your CI system.
73
73
74
- You must disable Rustler's compilation in your release environment as well.
75
- This is done at compile time in the Nix derivation, but your runtime
76
- configuration must match this.
74
+ You must disable Rustler's compilation for all rustler_precompiled dependencies.
77
75
78
76
e.g. for explorer, in ` config/prod.exs ` :
79
77
Original file line number Diff line number Diff line change
1
+ import Config
2
+
3
+ config :ex_keccak , ExKeccak , skip_compilation?: true
4
+ config :explorer , Explorer.PolarsBackend.Native , skip_compilation?: true
5
+ config :ex_secp256k1 , ExSecp256k1.Impl , skip_compilation?: true
6
+ config :tokenizers , Tokenizers.Native , skip_compilation?: true
Original file line number Diff line number Diff line change 46
46
] ++ extendedPkgs . lib . lists . optional extendedPkgs . stdenv . isDarwin extendedPkgs . darwin . IOKit ;
47
47
doCheck = false ;
48
48
} ;
49
- elixirConfig = pkgs . writeTextDir "config/config.exs" ''
50
- import Config
51
-
52
- config :ex_keccak, ExKeccak, skip_compilation?: true
53
- config :explorer, Explorer.PolarsBackend.Native, skip_compilation?: true
54
- config :ex_secp256k1, ExSecp256k1.Impl, skip_compilation?: true
55
- config :tokenizers, Tokenizers.Native, skip_compilation?: true
56
- '' ;
57
49
58
50
in
59
51
{
60
52
nativeBuildInputs = [ extendedPkgs . cargo ] ;
61
53
62
- appConfigPath = "${ elixirConfig } /config" ;
63
-
64
54
env . RUSTLER_PRECOMPILED_FORCE_BUILD_ALL = "true" ;
65
55
env . RUSTLER_PRECOMPILED_GLOBAL_CACHE_PATH = "unused-but-required" ;
66
56
Original file line number Diff line number Diff line change @@ -231,21 +231,11 @@ defmodule DepsNix do
231
231
] ++ extendedPkgs.lib.lists.optional extendedPkgs.stdenv.isDarwin extendedPkgs.darwin.IOKit;
232
232
doCheck = false;
233
233
};
234
- elixirConfig = pkgs.writeTextDir "config/config.exs" ''
235
- import Config
236
-
237
- config :ex_keccak, ExKeccak, skip_compilation?: true
238
- config :explorer, Explorer.PolarsBackend.Native, skip_compilation?: true
239
- config :ex_secp256k1, ExSecp256k1.Impl, skip_compilation?: true
240
- config :tokenizers, Tokenizers.Native, skip_compilation?: true
241
- '';
242
234
243
235
in
244
236
{
245
237
nativeBuildInputs = [ extendedPkgs.cargo ];
246
238
247
- appConfigPath = "${elixirConfig}/config";
248
-
249
239
env.RUSTLER_PRECOMPILED_FORCE_BUILD_ALL = "true";
250
240
env.RUSTLER_PRECOMPILED_GLOBAL_CACHE_PATH = "unused-but-required";
251
241
You can’t perform that action at this time.
0 commit comments