Logo
Explore Help
Sign In
logos-messaging/logos-chat
1
0
Fork 0
You've already forked logos-chat
mirror of https://github.com/logos-messaging/logos-chat.git synced 2026-03-07 08:03:05 +00:00
Code Issues Packages Projects Releases Wiki Activity
logos-chat/nix/shell.nix

18 lines
397 B
Nix
Raw Normal View History

feat: add nix flake
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
fix: mac build (#84) * 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
2026-02-25 01:40:08 +02:00
];
feat: add nix flake
2026-02-23 15:58:29 +01:00
shellHook = ''
feat: statically link libchat and rln via rust-bundle (#83) Add rust-bundle, a single staticlib crate that depends on both libchat and rln as rlibs. This ensures rustc links Rust std exactly once, eliminating duplicate symbol errors on all platforms. Nim targets link against liblogos_chat_bundle.a; Nix uses a bundleDrv instead of separate libchat and rln derivations. Reference: https://doc.rust-lang.org/reference/linkage.html#mixed-rust-and-foreign-codebases
2026-03-01 17:27:40 +01:00
echo "logos-chat dev shell."
feat: add nix flake
2026-02-23 15:58:29 +01:00
echo "Build: make liblogoschat"
echo "Nix build: nix build '.?submodules=1#'"
'';
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.0 Page: 30ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API