mirror of
https://github.com/logos-messaging/nim-sds.git
synced 2026-01-02 14:13:07 +00:00
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'
|
||
|
|
'';
|
||
|
|
}
|