mirror of
https://github.com/logos-messaging/nim-sds.git
synced 2026-02-17 12:33:06 +00:00
This way we can track same Nim as in vendor folder. Notably this upgrades from Nim 2.2.4 to 2.2.6. Depends on: https://github.com/status-im/nimbus-build-system/pull/112 Signed-off-by: Jakub Sokołowski <jakub@status.im>
28 lines
361 B
Nix
28 lines
361 B
Nix
{
|
|
pkgs ? import <nixpkgs> { },
|
|
nim ? null,
|
|
}:
|
|
|
|
let
|
|
inherit (pkgs) lib stdenv;
|
|
|
|
in pkgs.mkShell {
|
|
inputsFrom = [
|
|
pkgs.androidShell
|
|
];
|
|
|
|
buildInputs = with pkgs; [
|
|
nim
|
|
which
|
|
git
|
|
cmake
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
pkgs.libiconv
|
|
];
|
|
|
|
# Avoid compiling Nim itself.
|
|
shellHook = ''
|
|
export USE_SYSTEM_NIM=1
|
|
'';
|
|
}
|