mirror of
https://github.com/logos-messaging/nim-chat-poc.git
synced 2026-02-27 01:13:08 +00:00
* fix: mac build - fix error: `error: darwin.apple_sdk_11_0 has been removed as it was a legacy compatibility stub` - fix librln hash - bumped nim-ffi * fix: typo
19 lines
504 B
Nix
19 lines
504 B
Nix
{ pkgs, lib, stdenv, libchatDrv }:
|
|
|
|
let
|
|
libExt = if stdenv.isDarwin then "dylib" else "so";
|
|
in pkgs.mkShell {
|
|
buildInputs = with pkgs; [
|
|
nim cargo rustc clippy rustfmt
|
|
git cmake gnumake which pkg-config
|
|
openssl miniupnpc libnatpmp
|
|
];
|
|
|
|
shellHook = ''
|
|
export CONVERSATIONS_LIB="${libchatDrv}/lib/liblibchat.${libExt}"
|
|
echo "logos-chat dev shell. CONVERSATIONS_LIB=$CONVERSATIONS_LIB"
|
|
echo "Build: make liblogoschat"
|
|
echo "Nix build: nix build '.?submodules=1#'"
|
|
'';
|
|
}
|