!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

336 Members
103 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
17 Dec 2025
@aleksana:mozilla.orgFind me at aleksana:qaq.li
[root@asterinas:~]# cat /proc/version
Linux version 5.13.0 (root@kiryca) (rustc 1.94.0-nightly) #1 Wed Dec 17 02:57:56 UTC 2025
03:35:54
@aleksana:mozilla.orgFind me at aleksana:qaq.li2025-12-17-T11-50-44.png
Download 2025-12-17-T11-50-44.png
03:51:52
@aleksana:mozilla.orgFind me at aleksana:qaq.liThe ext2 filesystem driver is quite unstable and can crash at any time due to heavy writes03:58:33
22 Dec 2025
@amadaluzia:pub.solaramadaluzia[psolar] changed their display name from amadALTuzia (pub.solar) to amadaluzia[psolar].17:31:17
24 Dec 2025
@hacker1024:matrix.orghacker1024

Hi all,
I'm trying to write a derivation for an embedded C++ microcontroller application.
For this, I must use a copy of libstdc++ with something like --enable-cxx-flags='-fno-exceptions -fno-rtti' (docs here).
Is there a way to configure Nixpkgs to use these settings for libstdc++ for the host platform? Something to add to the following, for example?

import <nixpkgs> {
  crossSystem = {
    config = "arm-none-eabihf";
    libc = "newlib-nano";
    gcc = {
      cpu = "cortex-m7";
      fpu = "fpv5-d16";
      float-abi = "hard";
      thumb = true;
    };
    rust.rustcTarget = "thumbv7em-none-eabihf";
    isStatic = true;
  }
}
06:04:25
@hacker1024:matrix.orghacker1024

I'm looking at something like this patch to Nixpkgs at the moment, but hopefully there's an existing mechanism I'm yet to discover

--- a/pkgs/development/compilers/gcc/common/platform-flags.nix
+++ b/pkgs/development/compilers/gcc/common/platform-flags.nix
@@ -17,6 +17,7 @@ lib.concatLists [
   (lib.optional (p ? fpu) "--with-fpu=${p.fpu}")
   (lib.optional (p ? float) "--with-float=${p.float}")
   (lib.optional (p ? mode) "--with-mode=${p.mode}")
+  (lib.optional (p ? enableCxxFlags) "--enable-cxx-flags=${builtins.concatStringsSep ''\ '' p.enableCxxFlags}")
   (lib.optionals targetPlatform.isPower64
     # musl explicitly rejects 128-bit long double on
     # powerpc64; see musl/arch/powerpc64/bits/float.h
06:36:36
@amadaluzia:unredacted.orgamadaluzia changed their profile picture.16:53:16
26 Dec 2025
@zimward:zimward.moezimward changed their display name from zimward to zimward @ 39c3.15:49:04
27 Dec 2025
@zimward:zimward.moezimward changed their display name from zimward @ 39c3 to zimward @ 39c3 ☎️ 75947.10:43:49

Show newer messages


Back to Room ListRoom Version: 6