logos-chat/nix/shell.nix

19 lines
504 B
Nix
Raw Normal View History

2026-02-23 15:58:29 +01:00
{ 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
];
2026-02-23 15:58:29 +01:00
shellHook = ''
export CONVERSATIONS_LIB="${libchatDrv}/lib/liblibchat.${libExt}"
2026-02-23 15:58:29 +01:00
echo "logos-chat dev shell. CONVERSATIONS_LIB=$CONVERSATIONS_LIB"
echo "Build: make liblogoschat"
echo "Nix build: nix build '.?submodules=1#'"
'';
}