jetify-com / devbox

Instant, easy, and predictable development environments
https://www.jetify.com/devbox/
Apache License 2.0
7.83k stars 187 forks source link

kicad5, kicad6, and kicad7 #2133

Open crabdancing opened 3 weeks ago

crabdancing commented 3 weeks ago

Legacy versions of KiCad are still widely used in industry, owing to stability issues introduced in newer versions. Unfortunately, if you try to just run KiCad 6 with nix run, the program crashes upon actually trying to start, e.g., schematic or PCB editor from the project launch screen.

STDERR gives a hint as to the problem, which is impurities in the execution environment:

> nix run nixpkgs/nixos-22.11#kicad
/nix/store/vnwdak3n1w2jjil119j65k8mw1z23p84-glibc-2.35-224/lib/libc.so.6: version `GLIBC_2.38' not found (required by /nix/store/62h6dgdy3yrv7r1a8hmrfnxkhcgcidzj-gvfs-1.54.1/lib/gio/modules/libgvfsdbus.so)
Failed to load module: /nix/store/62h6dgdy3yrv7r1a8hmrfnxkhcgcidzj-gvfs-1.54.1/lib/gio/modules/libgvfsdbus.so
/nix/store/62h6dgdy3yrv7r1a8hmrfnxkhcgcidzj-gvfs-1.54.1/lib/gvfs/libgvfscommon.so: undefined symbol: g_task_set_static_name
Failed to load module: /nix/store/62h6dgdy3yrv7r1a8hmrfnxkhcgcidzj-gvfs-1.54.1/lib/gio/modules/libgioremote-volume-monitor.so
/nix/store/vnwdak3n1w2jjil119j65k8mw1z23p84-glibc-2.35-224/lib/libc.so.6: version `GLIBC_2.38' not found (required by /nix/store/62h6dgdy3yrv7r1a8hmrfnxkhcgcidzj-gvfs-1.54.1/lib/gio/modules/libgvfsdbus.so)
Failed to load module: /nix/store/62h6dgdy3yrv7r1a8hmrfnxkhcgcidzj-gvfs-1.54.1/lib/gio/modules/libgvfsdbus.so
/nix/store/62h6dgdy3yrv7r1a8hmrfnxkhcgcidzj-gvfs-1.54.1/lib/gvfs/libgvfscommon.so: undefined symbol: g_task_set_static_name
Failed to load module: /nix/store/62h6dgdy3yrv7r1a8hmrfnxkhcgcidzj-gvfs-1.54.1/lib/gio/modules/libgioremote-volume-monitor.so
/nix/store/g19314860ijffhbksw25pl2rcagk7wcx-dconf-0.40.0-lib/lib/gio/modules/libdconfsettings.so: undefined symbol: g_assertion_message_cmpint
Failed to load module: /nix/store/g19314860ijffhbksw25pl2rcagk7wcx-dconf-0.40.0-lib/lib/gio/modules/libdconfsettings.so
/nix/store/vnwdak3n1w2jjil119j65k8mw1z23p84-glibc-2.35-224/lib/libc.so.6: version `GLIBC_2.38' not found (required by /nix/store/62h6dgdy3yrv7r1a8hmrfnxkhcgcidzj-gvfs-1.54.1/lib/gio/modules/libgvfsdbus.so)
Failed to load module: /nix/store/62h6dgdy3yrv7r1a8hmrfnxkhcgcidzj-gvfs-1.54.1/lib/gio/modules/libgvfsdbus.so
/nix/store/62h6dgdy3yrv7r1a8hmrfnxkhcgcidzj-gvfs-1.54.1/lib/gvfs/libgvfscommon.so: undefined symbol: g_task_set_static_name
Failed to load module: /nix/store/62h6dgdy3yrv7r1a8hmrfnxkhcgcidzj-gvfs-1.54.1/lib/gio/modules/libgioremote-volume-monitor.so

It'd be great to have a working Nix package tested against up-to-date systems for these legacy versions of KiCad.