diff --git a/nix/dev-shell.nix b/nix/dev-shell.nix index f964c3f50..7414b816f 100644 --- a/nix/dev-shell.nix +++ b/nix/dev-shell.nix @@ -1,70 +1,72 @@ { mkShell , stdenv , lib , amqp-cpp , arcanist , cargo , cmake , cryptopp , darwin , grpc +, libiconv , libuv , nodejs-16_x , pkg-config , protobuf_3_15_cmake , python2 , python3 , watchman , rustfmt , yarn }: mkShell { # programs which are meant to be executed should go here nativeBuildInputs = [ # generic development arcanist # node development nodejs-16_x yarn watchman # react native python2 python3 # native dependencies # C/CXX toolchains are already brought in with mkShell # Identity Service cargo # includes rustc rustfmt # Tunnelbroker + CMake amqp-cpp cryptopp cmake libuv pkg-config protobuf_3_15_cmake grpc ]; # include any libraries buildInputs buildInputs = [ protobuf_3_15_cmake # exposes both a library and a command, thus should appear in both inputs ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ CoreFoundation CoreServices Security + libiconv # identity service ]); # shell commands to be ran upon entering shell shellHook = '' if [[ "$OSTYPE" == 'linux'* ]]; then export MYSQL_UNIX_PORT=''${XDG_RUNTIME_DIR:-/run/user/$UID}/mysql-socket/mysql.sock fi echo "Welcome to Comm dev environment! :)" ''; }