| 19 Jan 2026 |
rosssmyth | It does default to thin local LTO between codegen units within a single crate aka between modules | 01:31:31 |
| Sapphire changed their profile picture. | 20:16:20 |
| 20 Jan 2026 |
| cheako joined the room. | 05:54:14 |
cheako | I must be doing something wrong because I get proc-macro server version check failed from rust-analyzer. I'm on a steamdeck and it's all setup to run most everything from podman and nix making assumptions about a "pristine" system breaks things. Like keeping the provided LD_LIBRARY_PATH, this made the installer(nix-store) segfault. | 06:09:47 |
cheako | I actually came to ask about developing for android, from amd64. I think I should be using cargo-ndk and there is a package for that. | 06:11:20 |
cheako | /nix/store/n234xvnsajgvn5lym30idk66397s86sq-rust-nightly-complete-2026-01-19/bin/rust-analyzer and...
/nix/store/n234xvnsajgvn5lym30idk66397s86sq-rust-nightly-complete-2026-01-19/libexec/rust-analyzer-proc-macro-srv | 06:16:40 |
cheako | (deck@steamdeck-oled ~)$ head -n30 .local/bin/{.codium.nix,codium}
==> .local/bin/.codium.nix <==
with (import <nixpkgs>) { };
mkShell {
nativeBuildInputs = [
pkg-config
clang_18
lld_18
];
buildInputs = [
vscodium
neovim
nixfmt
(let
fenix = import (fetchTarball "https://github.com/nix-community/fenix/archive/main.tar.gz") { };
in
fenix.complete.toolchain)
pre-commit
# rustfmt
# rustPackages.clippy
alsa-lib
udev
vulkan-loader
vulkan-headers
vulkan-tools
xorg.libX11
xorg.libXrandr
xorg.libXcursor
xorg.libXi
(android-studio.withSdk (androidenv.composeAndroidPackages { includeNDK = true; }).androidsdk)
cargo-ndk
];
==> .local/bin/codium <==
#!/bin/sh
exec nix-shell --run codium "$(dirname "$(realpath $0)")"/.codium.nix
| 06:18:30 |
cheako | shellHook = ''export LD_LIBRARY_PATH="''${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}${
pkgs.lib.makeLibraryPath [
alsa-lib
udev
vulkan-loader
libxkbcommon
]
}"'';
RUST_SRC_PATH = rustPlatform.rustLibSrc;
}
| 06:20:47 |
cheako | Also I added [ "$TEMP" ] && mkdir -p "$TEMP" to my .profile, but still I need to run it manually. | 06:22:50 |
cheako | I'll be back in 8hrs. | 06:24:39 |
| innocentzer0 joined the room. | 14:40:21 |
cheako | (deck@steamdeck-oled ~)$ nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"`
- host os: `Linux 6.11.11-valve27-1-neptune-611-g60ef8556a811, SteamOS, noversion, 20260108.1`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.31.2+2`
- channels(root): `"nixpkgs"`
- nixpkgs: `/nix/store/ss16zjzngmqn3idqk8a8csh7x1xjkqf7-nixpkgs/nixpkgs`
| 17:47:36 |
| faye joined the room. | 17:52:10 |
Marie | have you tried rust from nixpkgs instead of fenix? | 19:13:21 |
cheako | Yes, I moved to fenix because rust-analyzer was unable to process macros. | 19:24:03 |
Pol | Hello,
I'm trying to build fresh-editor 0.1.86 and I got this issue: https://github.com/NixOS/nixpkgs/pull/482054 | 19:56:36 |
Epic Eric | I attached a breakpointHook and got the following error while trying to compile it manually: | 21:30:12 |
Epic Eric | --- stderr
thread 'main' (7836) panicked at /build/fresh-0.1.86-vendor/bindgen-0.72.1/lib.rs:616:27:
Unable to find libclang: "couldn't find any valid shared libraries matching: ['libclang.so', 'libclang-*.so', 'libclang.so.*', 'libclang-*.so.*'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"
stack backtrace:
0: __rustc::rust_begin_unwind
1: core::panicking::panic_fmt
2: core::result::unwrap_failed
3: core::result::Result<T,E>::expect
4: bindgen::ensure_libclang_is_loaded::{{closure}}
5: std::sync::once_lock::OnceLock<T>::get_or_init::{{closure}}
6: std::sync::once_lock::OnceLock<T>::initialize::{{closure}}
7: std::sync::poison::once::Once::call_once_force::{{closure}}
8: std::sys::sync::once::futex::Once::call
9: std::sync::poison::once::Once::call_once_force
10: std::sync::once_lock::OnceLock<T>::initialize
11: std::sync::once_lock::OnceLock<T>::get_or_try_init
12: std::sync::once_lock::OnceLock<T>::get_or_init
13: bindgen::ensure_libclang_is_loaded
14: bindgen::Bindings::generate
15: bindgen::Builder::generate
16: build_script_build::bindgen
17: build_script_build::main
18: core::ops::function::FnOnce::call_once
| 21:30:37 |
cheako | For my project I have something like, for you change it up a bit because you are missing librquickjs:
shellHook = ''export LD_LIBRARY_PATH="''${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}${
pkgs.lib.makeLibraryPath [
alsa-lib
udev
wayland
vulkan-loader
libxkbcommon
]
}"'';
| 21:32:53 |
Epic Eric | Okay, so from following the official flake, there are two changes that needed to be done: | 21:44:18 |
Epic Eric | (my Shift+Enter is broken, sorry) | 21:44:31 |
Epic Eric |
- Adding "${libclang.lib}/lib" to env.LIBCLANG_PATH
- Adding clang to nativeBuildInputs
| 21:45:21 |
Epic Eric | This is the flake https://github.com/sinelaw/fresh/blob/master/flake.nix | 21:45:38 |
Epic Eric | That compiles, but a test fails 😅 | 21:57:42 |
Epic Eric | Redacted or Malformed Event | 21:58:53 |
Epic Eric | * That compiles, but a test fails 😅
failures:
---- services::plugins::embedded::tests::test_extract_plugins stdout ----
thread 'services::plugins::embedded::tests::test_extract_plugins' (8842) panicked at crates/fresh-editor/src/services/plugins/embedded.rs:138:9:
assertion failed: path.is_some()
failures:
services::plugins::embedded::tests::test_extract_plugins
test result: FAILED. 1388 passed; 1 failed; 1 ignored; 0 measured; 0 filtered out; finished in 1.09s
| 22:00:43 |
Epic Eric | Download fix.patch | 22:04:26 |
| 21 Jan 2026 |
cheako | I had planed to use a nix environment to build an android app. But rust is only happy for me when it's installed with rustup. When I load into vscodium, I need to run two things... mkdir $TEMP and PATH=$HOME/.cargo/bin:$PATH then everything seems to work. | 03:06:44 |
Pol | Epic Eric: Going to try all of that ! Thanks !!!! | 10:51:56 |
Pol | It worked, thank you :) the PR is ready for review ! | 12:08:19 |