mirror of
https://github.com/logos-messaging/nim-sds.git
synced 2026-01-02 14:13:07 +00:00
For some unknown reason the builds would fail with: /bin/sh: line 1: clang: command not found Unless we added Android NDK toolchains/llvm/prebuilt to PATH. Signed-off-by: Jakub Sokołowski <jakub@status.im>
27 lines
441 B
Nix
27 lines
441 B
Nix
{
|
|
pkgs ? import <nixpkgs> { },
|
|
}:
|
|
let
|
|
optionalDarwinDeps = pkgs.lib.optionals pkgs.stdenv.isDarwin [
|
|
pkgs.libiconv
|
|
pkgs.darwin.apple_sdk.frameworks.Security
|
|
];
|
|
in
|
|
pkgs.mkShell {
|
|
inputsFrom = [
|
|
pkgs.androidShell
|
|
] ++ optionalDarwinDeps;
|
|
|
|
buildInputs = with pkgs; [
|
|
which
|
|
git
|
|
cmake
|
|
nim-unwrapped-2_2
|
|
];
|
|
|
|
# Avoid compiling Nim itself.
|
|
shellHook = ''
|
|
export MAKEFLAGS='USE_SYSTEM_NIM=1'
|
|
'';
|
|
}
|