mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-02 14:03:06 +00:00
* android-ndk is added * in the derivation, system nim is default but one can change it to nimbus-build-system * special script for creating nimble links, necessary for the compilation to succeed. Referenced issue: * https://github.com/waku-org/nwaku/issues/3232
27 lines
424 B
Nix
27 lines
424 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; [
|
|
git
|
|
cargo
|
|
rustup
|
|
cmake
|
|
nim-unwrapped-2_0
|
|
];
|
|
|
|
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [
|
|
pkgs.pcre
|
|
];
|
|
}
|