nix: set default system nim

Signed-off-by: markoburcul <marko@status.im>
This commit is contained in:
Marko Burčul 2025-03-11 13:50:42 +01:00
parent fa81e179f6
commit 0e3810e1ec
2 changed files with 6 additions and 2 deletions

View File

@ -4,7 +4,8 @@
src ? ../.,
targets ? ["libwaku-android-arm64"],
verbosity ? 2,
useSystemNim ? false,
useSystemNim ? true,
quickAndDirty ? true,
stableSystems ? [
"x86_64-linux" "aarch64-linux"
],
@ -61,10 +62,12 @@ in stdenv.mkDerivation rec {
ANDROID_NDK_HOME="${pkgs.androidPkgs.ndk}";
NIMFLAGS = "-d:disableMarchNative -d:git_revision_override=${revision}";
XDG_CACHE_HOME = "/tmp";
USE_SYSTEM_NIM = "1";
makeFlags = targets ++ [
"V=${toString verbosity}"
"QUICK_AND_DIRTY_COMPILER=${if quickAndDirty then "1" else "0"}"
"QUICK_AND_DIRTY_NIMBLE=${if quickAndDirty then "1" else "0"}"
"USE_SYSTEM_NIM=${if useSystemNim then "1" else "0"}"
];
configurePhase = ''

View File

@ -9,6 +9,7 @@ pkgs.mkShell {
openssl
which
rustup
nim-unwrapped-2_0
docker
cargo
] ++ lib.optionals stdenv.isDarwin [