!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

687 Members
Rust155 Servers

Load older messages


SenderMessageTime
20 Jan 2026
@epiceric:nixos.devEpic 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:matrix.orgcheako

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
@epiceric:nixos.devEpic EricOkay, so from following the official flake, there are two changes that needed to be done:21:44:18
@epiceric:nixos.devEpic Eric(my Shift+Enter is broken, sorry)21:44:31
@epiceric:nixos.devEpic Eric
  1. Adding "${libclang.lib}/lib" to env.LIBCLANG_PATH
  2. Adding clang to nativeBuildInputs
21:45:21
@epiceric:nixos.devEpic EricThis is the flake https://github.com/sinelaw/fresh/blob/master/flake.nix21:45:38
@epiceric:nixos.devEpic EricThat compiles, but a test fails 😅21:57:42
@epiceric:nixos.devEpic EricRedacted or Malformed Event21:58:53
@epiceric:nixos.devEpic 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
@epiceric:nixos.devEpic EricDownload fix.patch22:04:26
21 Jan 2026
@cheako:matrix.orgcheako 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
@drupol:matrix.orgPol Epic Eric: Going to try all of that ! Thanks !!!! 10:51:56
@drupol:matrix.orgPolIt worked, thank you :) the PR is ready for review !12:08:19
29 Oct 2021
@grahamc:nixos.org@grahamc:nixos.org set the history visibility to "world_readable".19:57:43
@grahamc:nixos.org@grahamc:nixos.org changed the room name to "" from "".19:57:43
@grahamc:nixos.org@grahamc:nixos.org changed the room topic to "" from "".19:57:43
@server_stats:nordgedanken.devServer Stats Discoverer (traveler bot) joined the room.19:58:21
@voyager:t2bot.ioMatrix Traveler (bot) joined the room.19:59:14
@ralith:ralith.comRalith joined the room.20:00:28
@grahamc:nixos.org@grahamc:nixos.orgchanged room power levels.20:00:52
@grahamc:nixos.org@grahamc:nixos.org invited @mjolnir:nixos.orgNixOS Moderation Bot.20:01:04
@mjolnir:nixos.orgNixOS Moderation Bot joined the room.20:01:05
@grahamc:nixos.org@grahamc:nixos.orgchanged room power levels.20:01:08
Room Avatar Renderer.20:02:40
@hexa:lossy.networkhexa joined the room.20:04:36
@kity:kity.wtfash (it/its) 🏳️‍⚧️ joined the room.20:06:27
@noah:matrix.chatsubo.cafeChurch joined the room.20:18:19
@figsoda:matrix.orgfigsoda joined the room.20:33:22
@withoutwithin:matrix.orgXe Iaso joined the room.20:59:23
@tomberek:matrix.orgtomberek joined the room.21:02:26

Show newer messages


Back to Room ListRoom Version: 6