Skip to content

freecad: wrapGApps#472540

Closed
qbisi wants to merge 1 commit intoNixOS:masterfrom
qbisi:freecad-gapp
Closed

freecad: wrapGApps#472540
qbisi wants to merge 1 commit intoNixOS:masterfrom
qbisi:freecad-gapp

Conversation

@qbisi
Copy link
Contributor

@qbisi qbisi commented Dec 19, 2025

fix #467783
supersede #470594

cc @srounce
How do we know an application should be gappwrapped if we don't have thouse gtk depends in buildInputs?

Things done

> nix develop .#freecad
> gappsWrapperArgsHook 

> echo ${gappsWrapperArgs[@]}
--prefix GIO_EXTRA_MODULES : /nix/store/2rmi134a24nhc5yj79fif5imj57ij9ix-dconf-0.49.0-lib/lib/gio/modules --prefix GIO_EXTRA_MODULES : /nix/store/2rmi134a24nhc5yj79fif5imj57ij9ix-dconf-0.49.0-lib/lib/gio/modules --set GDK_PIXBUF_MODULE_FILE /nix/store/macica20pv99l5h35hjyy4fh3l8qvn62-librsvg-2.61.3/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache --prefix XDG_DATA_DIRS : /nix/store/asyx6hpiyah9kwsk03j8g1dcqgm5gmf4-gsettings-desktop-schemas-49.1/share/gsettings-schemas/gsettings-desktop-schemas-49.1:/nix/store/w9li4sk4g2ijslh3nbyl60mbb1rfjgc8-gtk+3-3.24.51/share/gsettings-schemas/gtk+3-3.24.51:/nix/store/219hncmrc1bfnf6vlr5s9m395pygxiy0-pulseaudio-17.0/share/gsettings-schemas/pulseaudio-17.0:/nix/store/dh752ravf4jlgd1p6adyc3zy2lzpapd7-pipewire-1.4.9/share/gsettings-schemas/pipewire-1.4.9
  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Dec 19, 2025
@qbisi qbisi marked this pull request as ready for review December 20, 2025 00:04
@nixpkgs-ci nixpkgs-ci bot requested a review from LordGrimmauld December 20, 2025 00:09
@Wulfsta
Copy link
Member

Wulfsta commented Dec 24, 2025

This does not fix the issue in #467783 for me.

FreeCAD 1.0.2, Libs: 1.0.2RUnknown
(C) 2001-2025 FreeCAD contributors
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.

(qt.qpa.services) Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: App info not found for 'org.freecad.FreeCAD'")
The `.FCStd#` backup format is deprecated and may be removed in future versions.
To update, check the 'Preferences->General->Document->Use date and FCBak extension' option.

(freecad:1351753): GLib-GIO-ERROR **: 02:45:20.600: No GSettings schemas are installed on the system
zsh: trace trap (core dumped)  freecad

Oddly, adding wrapGAppsHook3 to nativeBuildInputs like here does fix the issue.

@Aleksanaa
Copy link
Member

How do we know an application should be gappwrapped if we don't have thouse gtk depends in buildInputs?

See #149812 #271037

@qbisi
Copy link
Contributor Author

qbisi commented Dec 24, 2025

@Aleksanaa is #271037 the real fix ? so we dont need wrapGAppHook

@ToMe25
Copy link

ToMe25 commented Feb 23, 2026

This PR does not fix the issue for me either.

It seems like for some reason gappsWrapperArgs is either empty, or not being applied correctly.
Printing the contents of it in a shell created with nix-shell -p wrapGAppsHook3 using echo ${gappsWrapperArgs[@]} returns this:

--prefix GIO_EXTRA_MODULES : /nix/store/9ry3b1n6g4x9yb3ysgdaq8zadhb4lvkk-dconf-0.49.0-lib/lib/gio/modules

I am aware that having additional packages available in the shell might change this result, but could not find details on this.

Regardless, not even that seems to be applied to the actual wrapper being created.

This is the information the wrapper contains about its creation time arguments with this PR on my nixos 25.11 installation:

PR wrapper arguments
# ------------------------------------------------------------------------------------
# The C-code for this binary wrapper has been generated using the following command:


makeCWrapper '/nix/store/bd04hw8xif6n2zc4g7smin85pl4vlv5z-freecad-1.0.2/bin/.FreeCAD-wrapped' \
    --inherit-argv0 \
    --set 'COIN_GL_NO_CURRENT_CONTEXT_CHECK' '1' \
    --prefix 'PATH' ':' '/nix/store/nw0dcm1fkjb9fy9xmqhig9sx220c84r5-libredwg-0.13.3/bin:/nix/store/iqmwq1hsizycphf72iwwglhn68f98lvp-which-2.23/bin' \
    --prefix 'PYTHONPATH' ':' '/nix/store/f8xmcwbyw8am8ybkdvzsj0ln6mlr559i-python3-3.13.11/lib/python3.13/site-packages:/nix/store/vk0hip1frfw6dfkq2sarlx5d9kkh54nd-boost-1.87.0/lib/python3.13/site-packages:/nix/store/i5pb3g2w5ik55l7ygyaqmbh4g2mjc13i-python3.13-gitpython-3.1.45/lib/python3.13/site-packages:/nix/store/hlr4r1la2shvy0ix0xi0nlqx87rp0jw9-python3.13-ifcopenshell-0.8.0/lib/python3.13/site-packages:/nix/store/dm1lb9a5v8d1abp5n6znpzalrxwhlr41-python3.13-matplotlib-3.10.5/lib/python3.13/site-packages:/nix/store/qzl6pj06zaaahf444c74xbh5lki8grhj-python3.13-opencamlib-2023.01.11/lib/python3.13/site-packages:/nix/store/5gx54w30km3ja68k2lv8abids431mib1-python3.13-pivy-0.6.10/lib/python3.13/site-packages:/nix/store/1bnmr8ndg0kbc6qpc3l9dgqhzcphynzq-python3.13-ply-3.11/lib/python3.13/site-packages:/nix/store/lx1ywhlx7m5pcgzx45vc2aa2ma97wg5n-python3.13-pybind11-3.0.1/lib/python3.13/site-packages:/nix/store/j31xm2j0pa4qg3yhjdnhyhzljkf2pp81-python3.13-pycollada-0.9.2/lib/python3.13/site-packages:/nix/store/bknya20aj6xw1vj83m8gcam859jhd4za-pyside6-6.10.0/lib/python3.13/site-packages:/nix/store/g29hsqbpm0hm4y6yj4q5j4dyqx0x1zas-python3.13-pyyaml-6.0.3/lib/python3.13/site-packages:/nix/store/l9559jxb5wq4cx78a2zxhb29mprjgc8g-python3.13-scipy-1.16.3/lib/python3.13/site-packages:/nix/store/s9kbsdgxg0r8y8rdc3x554394fab44pl-shiboken6-6.10.0/lib/python3.13/site-packages:/nix/store/whbqi5p5gsrj14vjwn8hrhlpdak0r71r-vtk-9.5.2/lib/python3.13/site-packages:/nix/store/c59c8iyv93r36798iss6rqk9chp62yrk-python3.13-ddt-1.7.2/lib/python3.13/site-packages:/nix/store/y3irnhd59hafs2q64qx6gqdwrvg2ipy4-python3.13-gitdb-4.0.12/lib/python3.13/site-packages:/nix/store/n2ddy2yqycpphmhymm3dafhn54742d0d-python3.13-smmap-6.0.0/lib/python3.13/site-packages:/nix/store/lip7b3j1y0m66zkn8xl69aphrk7wf3xs-python3.13-isodate-0.7.2/lib/python3.13/site-packages:/nix/store/iabbxp8pr24i65gy9j0snlcs43yl0gis-python3.13-lark-1.2.2/lib/python3.13/site-packages:/nix/store/rpna4a6amr7wcmh4z6vr097djqrsxraf-python3.13-numpy-2.3.4/lib/python3.13/site-packages:/nix/store/np88x2a5frhi1rbz30h4mm0rhc9qibq9-python3.13-python-dateutil-2.9.0.post0/lib/python3.13/site-packages:/nix/store/zav4zqffv56dbrambdbyb9wvsnqrwf2s-python3.13-shapely-2.1.1/lib/python3.13/site-packages:/nix/store/bxzy4vygdg35xazr5wrn22i0bww2milf-python3.13-typing-extensions-4.15.0/lib/python3.13/site-packages:/nix/store/36x9w673mr8n097z056z41hcxf77f844-python3.13-regex-2025.9.18/lib/python3.13/site-packages:/nix/store/7zgms92dkkzvhg89pk1938mgc9jwb5p6-python3.13-six-1.17.0/lib/python3.13/site-packages:/nix/store/jlashb3waw79l934iqwa1bwy9lgyivfp-python3.13-contourpy-1.3.3/lib/python3.13/site-packages:/nix/store/flwlhc8ipqiig5ihz3mnhfqgbivrhwc6-python3.13-cycler-0.12.1/lib/python3.13/site-packages:/nix/store/jfyaihzpl2sfjms7qi41n5zgdk0h7by0-python3.13-fonttools-4.60.1/lib/python3.13/site-packages:/nix/store/rd0j0nbmhlsz3kys6lhcmk2amjdg7gmr-python3.13-kiwisolver-1.4.8/lib/python3.13/site-packages:/nix/store/yd0np5437kd8ykmlfg1frwg8b98rlxci-python3.13-packaging-25.0/lib/python3.13/site-packages:/nix/store/7nqfjmmclivpjjr3wlfzp5v9kx4r4kfd-python3.13-pillow-12.1.0/lib/python3.13/site-packages:/nix/store/m3kgh929sqxca8yf93954jfp6f01z7rs-python3.13-pyparsing-3.2.3/lib/python3.13/site-packages:/nix/store/a19vvnf8h9vsk8z7bffm31qics53j46y-python3.13-tkinter-3.13.11/lib/python3.13/site-packages:/nix/store/rfnqwbdx852m1fjc2rgvl0453xcawl8k-python3.13-vtk-9.5.2/lib/python3.13/site-packages:/nix/store/2z0704cv7cgxy37m4l8gphyiks4s09i9-python3.13-wslink-2.5.0/lib/python3.13/site-packages:/nix/store/r751ri68iybz0a5cvx8vwfwpp7lbxsmv-python3.13-aiohttp-3.13.3/lib/python3.13/site-packages:/nix/store/5swninvj2a8ff22ihmpbf879v8finbd3-python3.13-msgpack-1.1.1/lib/python3.13/site-packages:/nix/store/s0mbr0zh9f2sqik6c5x1j2xgbiz86rvr-python3.13-aiohappyeyeballs-2.6.1/lib/python3.13/site-packages:/nix/store/7vjrlfznyzlvz2pqg27cbgx1rfgarlps-python3.13-aiosignal-1.4.0/lib/python3.13/site-packages:/nix/store/xfvc43y1hxwmc49xnl7vdhif1ymqaqzf-python3.13-attrs-25.3.0/lib/python3.13/site-packages:/nix/store/yg49752wx17h833r9kh9bwbq81wgis1s-python3.13-frozenlist-1.7.0/lib/python3.13/site-packages:/nix/store/kl2xbd2g8yfsznfx4947rf1ipb218b6g-python3.13-multidict-6.7.0/lib/python3.13/site-packages:/nix/store/8wds7dgsydcmqkm38akq59vx076hc5vh-python3.13-propcache-0.3.2/lib/python3.13/site-packages:/nix/store/iz42wa996xzxd3zpigasgirwnjdp4h5c-python3.13-yarl-1.22.0/lib/python3.13/site-packages:/nix/store/ilcary23h1q9dxxpcysj6bl2yii2bvqs-python3.13-aiodns-3.5.0/lib/python3.13/site-packages:/nix/store/pyj4c2bhy0k3fn9zs9r3fbb7kgdp8flf-python3.13-backports-zstd-1.0.0/lib/python3.13/site-packages:/nix/store/x2rkpfgnfx8xbc2k34mlr8xq1y85kg4q-python3.13-brotli-1.2.0/lib/python3.13/site-packages:/nix/store/9x3sv4y05jldx9l5wn4varfmzjdzq56c-python3.13-idna-3.11/lib/python3.13/site-packages:/nix/store/ffkg2192blwc4jvbg1zrk41jy5rn28ks-python3.13-pycares-4.9.0/lib/python3.13/site-packages:/nix/store/1n6r0dcrl6n2ssa925xplxn7wykjd55z-python3.13-cffi-2.0.0/lib/python3.13/site-packages:/nix/store/151b00zb3a5gyxshmr9y0kp4nrlnmp1r-python3.13-pycparser-2.23/lib/python3.13/site-packages' \
    --prefix 'QT_PLUGIN_PATH' ':' '/nix/store/4k866ha6z00ycf6ar4gxljnjh37nfl3l-qtbase-6.10.1-only-plugins-qml/lib/qt-6/plugins' \
    --prefix 'QT_PLUGIN_PATH' ':' '/nix/store/3085p6lnfv3rknz39flwi8zca36pvb9z-qtwayland-6.10.1-only-plugins-qml/lib/qt-6/plugins' \
    --prefix 'NIXPKGS_QT6_QML_IMPORT_PATH' ':' '/nix/store/3085p6lnfv3rknz39flwi8zca36pvb9z-qtwayland-6.10.1-only-plugins-qml/lib/qt-6/qml' \
    --prefix 'QT_PLUGIN_PATH' ':' '/nix/store/6smmk0pkb5vl8hc1rx0x5qri1p91a8qy-qtbase-6.10.1/lib/qt-6/plugins' \
    --prefix 'QT_PLUGIN_PATH' ':' '/nix/store/vjavqvmf5f6ia9pbzgiisw6wksbx75cm-qtsvg-6.10.1/lib/qt-6/plugins' \
    --prefix 'QT_PLUGIN_PATH' ':' '/nix/store/54vyfv5fwcxqw3zyhcvzj1m6c4g9xs9j-qtdeclarative-6.10.1/lib/qt-6/plugins' \
    --prefix 'NIXPKGS_QT6_QML_IMPORT_PATH' ':' '/nix/store/54vyfv5fwcxqw3zyhcvzj1m6c4g9xs9j-qtdeclarative-6.10.1/lib/qt-6/qml' \
    --prefix 'QT_PLUGIN_PATH' ':' '/nix/store/0byxii0i2j9bf1dw578714zdwgk8n6jg-qttools-6.10.1/lib/qt-6/plugins' \
    --prefix 'QT_PLUGIN_PATH' ':' '/nix/store/4laipr4izl09r87f4d774yl006hqxmx9-qtwayland-6.10.1/lib/qt-6/plugins' \
    --prefix 'NIXPKGS_QT6_QML_IMPORT_PATH' ':' '/nix/store/4laipr4izl09r87f4d774yl006hqxmx9-qtwayland-6.10.1/lib/qt-6/qml' \
    --prefix 'NIXPKGS_QT6_QML_IMPORT_PATH' ':' '/nix/store/whz69za75r0jikxnfaxm2m0y9v44fpnh-qtwebsockets-6.10.1/lib/qt-6/qml' \
    --prefix 'NIXPKGS_QT6_QML_IMPORT_PATH' ':' '/nix/store/03qxqxmzv999ywyy8b7b4alfvyswqm8h-qtwebchannel-6.10.1/lib/qt-6/qml' \
    --prefix 'QT_PLUGIN_PATH' ':' '/nix/store/1wckhxd4slpz2la1pdfslhbn6x3v6lqb-qtpositioning-6.10.1/lib/qt-6/plugins' \
    --prefix 'NIXPKGS_QT6_QML_IMPORT_PATH' ':' '/nix/store/1wckhxd4slpz2la1pdfslhbn6x3v6lqb-qtpositioning-6.10.1/lib/qt-6/qml' \
    --prefix 'QT_PLUGIN_PATH' ':' '/nix/store/fjnnx6j4il9i2l78x5r4nvv62lgzpb33-qtwebengine-6.10.1/lib/qt-6/plugins' \
    --prefix 'NIXPKGS_QT6_QML_IMPORT_PATH' ':' '/nix/store/fjnnx6j4il9i2l78x5r4nvv62lgzpb33-qtwebengine-6.10.1/lib/qt-6/qml' \
    --prefix 'XDG_DATA_DIRS' ':' '/nix/store/bd04hw8xif6n2zc4g7smin85pl4vlv5z-freecad-1.0.2/share'


# (Use `nix-shell -p makeBinaryWrapper` to get access to makeCWrapper in your shell)
# ------------------------------------------------------------------------------------

For comparison, this is what the wrapper lists as its creation arguments with commit bf2bdcc:

Base wrapper arguments
# ------------------------------------------------------------------------------------
# The C-code for this binary wrapper has been generated using the following command:


makeCWrapper '/nix/store/b7qzjgj826m17bahh1m09xdqgg8y45bd-freecad-1.0.2/bin/.FreeCAD-wrapped' \
    --inherit-argv0 \
    --set 'COIN_GL_NO_CURRENT_CONTEXT_CHECK' '1' \
    --prefix 'PATH' ':' '/nix/store/nw0dcm1fkjb9fy9xmqhig9sx220c84r5-libredwg-0.13.3/bin:/nix/store/iqmwq1hsizycphf72iwwglhn68f98lvp-which-2.23/bin' \
    --prefix 'PYTHONPATH' ':' '/nix/store/f8xmcwbyw8am8ybkdvzsj0ln6mlr559i-python3-3.13.11/lib/python3.13/site-packages:/nix/store/vk0hip1frfw6dfkq2sarlx5d9kkh54nd-boost-1.87.0/lib/python3.13/site-packages:/nix/store/i5pb3g2w5ik55l7ygyaqmbh4g2mjc13i-python3.13-gitpython-3.1.45/lib/python3.13/site-packages:/nix/store/hlr4r1la2shvy0ix0xi0nlqx87rp0jw9-python3.13-ifcopenshell-0.8.0/lib/python3.13/site-packages:/nix/store/dm1lb9a5v8d1abp5n6znpzalrxwhlr41-python3.13-matplotlib-3.10.5/lib/python3.13/site-packages:/nix/store/qzl6pj06zaaahf444c74xbh5lki8grhj-python3.13-opencamlib-2023.01.11/lib/python3.13/site-packages:/nix/store/5gx54w30km3ja68k2lv8abids431mib1-python3.13-pivy-0.6.10/lib/python3.13/site-packages:/nix/store/1bnmr8ndg0kbc6qpc3l9dgqhzcphynzq-python3.13-ply-3.11/lib/python3.13/site-packages:/nix/store/lx1ywhlx7m5pcgzx45vc2aa2ma97wg5n-python3.13-pybind11-3.0.1/lib/python3.13/site-packages:/nix/store/j31xm2j0pa4qg3yhjdnhyhzljkf2pp81-python3.13-pycollada-0.9.2/lib/python3.13/site-packages:/nix/store/bknya20aj6xw1vj83m8gcam859jhd4za-pyside6-6.10.0/lib/python3.13/site-packages:/nix/store/g29hsqbpm0hm4y6yj4q5j4dyqx0x1zas-python3.13-pyyaml-6.0.3/lib/python3.13/site-packages:/nix/store/l9559jxb5wq4cx78a2zxhb29mprjgc8g-python3.13-scipy-1.16.3/lib/python3.13/site-packages:/nix/store/s9kbsdgxg0r8y8rdc3x554394fab44pl-shiboken6-6.10.0/lib/python3.13/site-packages:/nix/store/whbqi5p5gsrj14vjwn8hrhlpdak0r71r-vtk-9.5.2/lib/python3.13/site-packages:/nix/store/c59c8iyv93r36798iss6rqk9chp62yrk-python3.13-ddt-1.7.2/lib/python3.13/site-packages:/nix/store/y3irnhd59hafs2q64qx6gqdwrvg2ipy4-python3.13-gitdb-4.0.12/lib/python3.13/site-packages:/nix/store/n2ddy2yqycpphmhymm3dafhn54742d0d-python3.13-smmap-6.0.0/lib/python3.13/site-packages:/nix/store/lip7b3j1y0m66zkn8xl69aphrk7wf3xs-python3.13-isodate-0.7.2/lib/python3.13/site-packages:/nix/store/iabbxp8pr24i65gy9j0snlcs43yl0gis-python3.13-lark-1.2.2/lib/python3.13/site-packages:/nix/store/rpna4a6amr7wcmh4z6vr097djqrsxraf-python3.13-numpy-2.3.4/lib/python3.13/site-packages:/nix/store/np88x2a5frhi1rbz30h4mm0rhc9qibq9-python3.13-python-dateutil-2.9.0.post0/lib/python3.13/site-packages:/nix/store/zav4zqffv56dbrambdbyb9wvsnqrwf2s-python3.13-shapely-2.1.1/lib/python3.13/site-packages:/nix/store/bxzy4vygdg35xazr5wrn22i0bww2milf-python3.13-typing-extensions-4.15.0/lib/python3.13/site-packages:/nix/store/36x9w673mr8n097z056z41hcxf77f844-python3.13-regex-2025.9.18/lib/python3.13/site-packages:/nix/store/7zgms92dkkzvhg89pk1938mgc9jwb5p6-python3.13-six-1.17.0/lib/python3.13/site-packages:/nix/store/jlashb3waw79l934iqwa1bwy9lgyivfp-python3.13-contourpy-1.3.3/lib/python3.13/site-packages:/nix/store/flwlhc8ipqiig5ihz3mnhfqgbivrhwc6-python3.13-cycler-0.12.1/lib/python3.13/site-packages:/nix/store/jfyaihzpl2sfjms7qi41n5zgdk0h7by0-python3.13-fonttools-4.60.1/lib/python3.13/site-packages:/nix/store/rd0j0nbmhlsz3kys6lhcmk2amjdg7gmr-python3.13-kiwisolver-1.4.8/lib/python3.13/site-packages:/nix/store/yd0np5437kd8ykmlfg1frwg8b98rlxci-python3.13-packaging-25.0/lib/python3.13/site-packages:/nix/store/7nqfjmmclivpjjr3wlfzp5v9kx4r4kfd-python3.13-pillow-12.1.0/lib/python3.13/site-packages:/nix/store/m3kgh929sqxca8yf93954jfp6f01z7rs-python3.13-pyparsing-3.2.3/lib/python3.13/site-packages:/nix/store/a19vvnf8h9vsk8z7bffm31qics53j46y-python3.13-tkinter-3.13.11/lib/python3.13/site-packages:/nix/store/rfnqwbdx852m1fjc2rgvl0453xcawl8k-python3.13-vtk-9.5.2/lib/python3.13/site-packages:/nix/store/2z0704cv7cgxy37m4l8gphyiks4s09i9-python3.13-wslink-2.5.0/lib/python3.13/site-packages:/nix/store/r751ri68iybz0a5cvx8vwfwpp7lbxsmv-python3.13-aiohttp-3.13.3/lib/python3.13/site-packages:/nix/store/5swninvj2a8ff22ihmpbf879v8finbd3-python3.13-msgpack-1.1.1/lib/python3.13/site-packages:/nix/store/s0mbr0zh9f2sqik6c5x1j2xgbiz86rvr-python3.13-aiohappyeyeballs-2.6.1/lib/python3.13/site-packages:/nix/store/7vjrlfznyzlvz2pqg27cbgx1rfgarlps-python3.13-aiosignal-1.4.0/lib/python3.13/site-packages:/nix/store/xfvc43y1hxwmc49xnl7vdhif1ymqaqzf-python3.13-attrs-25.3.0/lib/python3.13/site-packages:/nix/store/yg49752wx17h833r9kh9bwbq81wgis1s-python3.13-frozenlist-1.7.0/lib/python3.13/site-packages:/nix/store/kl2xbd2g8yfsznfx4947rf1ipb218b6g-python3.13-multidict-6.7.0/lib/python3.13/site-packages:/nix/store/8wds7dgsydcmqkm38akq59vx076hc5vh-python3.13-propcache-0.3.2/lib/python3.13/site-packages:/nix/store/iz42wa996xzxd3zpigasgirwnjdp4h5c-python3.13-yarl-1.22.0/lib/python3.13/site-packages:/nix/store/ilcary23h1q9dxxpcysj6bl2yii2bvqs-python3.13-aiodns-3.5.0/lib/python3.13/site-packages:/nix/store/pyj4c2bhy0k3fn9zs9r3fbb7kgdp8flf-python3.13-backports-zstd-1.0.0/lib/python3.13/site-packages:/nix/store/x2rkpfgnfx8xbc2k34mlr8xq1y85kg4q-python3.13-brotli-1.2.0/lib/python3.13/site-packages:/nix/store/9x3sv4y05jldx9l5wn4varfmzjdzq56c-python3.13-idna-3.11/lib/python3.13/site-packages:/nix/store/ffkg2192blwc4jvbg1zrk41jy5rn28ks-python3.13-pycares-4.9.0/lib/python3.13/site-packages:/nix/store/1n6r0dcrl6n2ssa925xplxn7wykjd55z-python3.13-cffi-2.0.0/lib/python3.13/site-packages:/nix/store/151b00zb3a5gyxshmr9y0kp4nrlnmp1r-python3.13-pycparser-2.23/lib/python3.13/site-packages' \
    --prefix 'QT_PLUGIN_PATH' ':' '/nix/store/4k866ha6z00ycf6ar4gxljnjh37nfl3l-qtbase-6.10.1-only-plugins-qml/lib/qt-6/plugins' \
    --prefix 'QT_PLUGIN_PATH' ':' '/nix/store/3085p6lnfv3rknz39flwi8zca36pvb9z-qtwayland-6.10.1-only-plugins-qml/lib/qt-6/plugins' \
    --prefix 'NIXPKGS_QT6_QML_IMPORT_PATH' ':' '/nix/store/3085p6lnfv3rknz39flwi8zca36pvb9z-qtwayland-6.10.1-only-plugins-qml/lib/qt-6/qml' \
    --prefix 'QT_PLUGIN_PATH' ':' '/nix/store/6smmk0pkb5vl8hc1rx0x5qri1p91a8qy-qtbase-6.10.1/lib/qt-6/plugins' \
    --prefix 'QT_PLUGIN_PATH' ':' '/nix/store/vjavqvmf5f6ia9pbzgiisw6wksbx75cm-qtsvg-6.10.1/lib/qt-6/plugins' \
    --prefix 'QT_PLUGIN_PATH' ':' '/nix/store/54vyfv5fwcxqw3zyhcvzj1m6c4g9xs9j-qtdeclarative-6.10.1/lib/qt-6/plugins' \
    --prefix 'NIXPKGS_QT6_QML_IMPORT_PATH' ':' '/nix/store/54vyfv5fwcxqw3zyhcvzj1m6c4g9xs9j-qtdeclarative-6.10.1/lib/qt-6/qml' \
    --prefix 'QT_PLUGIN_PATH' ':' '/nix/store/0byxii0i2j9bf1dw578714zdwgk8n6jg-qttools-6.10.1/lib/qt-6/plugins' \
    --prefix 'QT_PLUGIN_PATH' ':' '/nix/store/4laipr4izl09r87f4d774yl006hqxmx9-qtwayland-6.10.1/lib/qt-6/plugins' \
    --prefix 'NIXPKGS_QT6_QML_IMPORT_PATH' ':' '/nix/store/4laipr4izl09r87f4d774yl006hqxmx9-qtwayland-6.10.1/lib/qt-6/qml' \
    --prefix 'NIXPKGS_QT6_QML_IMPORT_PATH' ':' '/nix/store/whz69za75r0jikxnfaxm2m0y9v44fpnh-qtwebsockets-6.10.1/lib/qt-6/qml' \
    --prefix 'NIXPKGS_QT6_QML_IMPORT_PATH' ':' '/nix/store/03qxqxmzv999ywyy8b7b4alfvyswqm8h-qtwebchannel-6.10.1/lib/qt-6/qml' \
    --prefix 'QT_PLUGIN_PATH' ':' '/nix/store/1wckhxd4slpz2la1pdfslhbn6x3v6lqb-qtpositioning-6.10.1/lib/qt-6/plugins' \
    --prefix 'NIXPKGS_QT6_QML_IMPORT_PATH' ':' '/nix/store/1wckhxd4slpz2la1pdfslhbn6x3v6lqb-qtpositioning-6.10.1/lib/qt-6/qml' \
    --prefix 'QT_PLUGIN_PATH' ':' '/nix/store/fjnnx6j4il9i2l78x5r4nvv62lgzpb33-qtwebengine-6.10.1/lib/qt-6/plugins' \
    --prefix 'NIXPKGS_QT6_QML_IMPORT_PATH' ':' '/nix/store/fjnnx6j4il9i2l78x5r4nvv62lgzpb33-qtwebengine-6.10.1/lib/qt-6/qml' \
    --prefix 'XDG_DATA_DIRS' ':' '/nix/store/b7qzjgj826m17bahh1m09xdqgg8y45bd-freecad-1.0.2/share'


# (Use `nix-shell -p makeBinaryWrapper` to get access to makeCWrapper in your shell)
# ------------------------------------------------------------------------------------

The only differences I could find are the store path of the freecad derivation.

Directly applying an additional XDG_DATA_DIRS prefix, like #470594 does, resolves the problem for me.

Here the relevant wrapper arguments:

Other PR wrapper arguments
# ------------------------------------------------------------------------------------
# The C-code for this binary wrapper has been generated using the following command:


makeCWrapper '/nix/store/bbz28zzfxlv9c09scldqdb0jxklqy8vj-freecad-1.0.2/bin/.FreeCAD-wrapped' \
    --inherit-argv0 \
    --set 'COIN_GL_NO_CURRENT_CONTEXT_CHECK' '1' \
    --prefix 'PATH' ':' '/nix/store/nw0dcm1fkjb9fy9xmqhig9sx220c84r5-libredwg-0.13.3/bin:/nix/store/iqmwq1hsizycphf72iwwglhn68f98lvp-which-2.23/bin' \
    --prefix 'PYTHONPATH' ':' '/nix/store/f8xmcwbyw8am8ybkdvzsj0ln6mlr559i-python3-3.13.11/lib/python3.13/site-packages:/nix/store/vk0hip1frfw6dfkq2sarlx5d9kkh54nd-boost-1.87.0/lib/python3.13/site-packages:/nix/store/i5pb3g2w5ik55l7ygyaqmbh4g2mjc13i-python3.13-gitpython-3.1.45/lib/python3.13/site-packages:/nix/store/hlr4r1la2shvy0ix0xi0nlqx87rp0jw9-python3.13-ifcopenshell-0.8.0/lib/python3.13/site-packages:/nix/store/dm1lb9a5v8d1abp5n6znpzalrxwhlr41-python3.13-matplotlib-3.10.5/lib/python3.13/site-packages:/nix/store/qzl6pj06zaaahf444c74xbh5lki8grhj-python3.13-opencamlib-2023.01.11/lib/python3.13/site-packages:/nix/store/5gx54w30km3ja68k2lv8abids431mib1-python3.13-pivy-0.6.10/lib/python3.13/site-packages:/nix/store/1bnmr8ndg0kbc6qpc3l9dgqhzcphynzq-python3.13-ply-3.11/lib/python3.13/site-packages:/nix/store/lx1ywhlx7m5pcgzx45vc2aa2ma97wg5n-python3.13-pybind11-3.0.1/lib/python3.13/site-packages:/nix/store/j31xm2j0pa4qg3yhjdnhyhzljkf2pp81-python3.13-pycollada-0.9.2/lib/python3.13/site-packages:/nix/store/bknya20aj6xw1vj83m8gcam859jhd4za-pyside6-6.10.0/lib/python3.13/site-packages:/nix/store/g29hsqbpm0hm4y6yj4q5j4dyqx0x1zas-python3.13-pyyaml-6.0.3/lib/python3.13/site-packages:/nix/store/l9559jxb5wq4cx78a2zxhb29mprjgc8g-python3.13-scipy-1.16.3/lib/python3.13/site-packages:/nix/store/s9kbsdgxg0r8y8rdc3x554394fab44pl-shiboken6-6.10.0/lib/python3.13/site-packages:/nix/store/whbqi5p5gsrj14vjwn8hrhlpdak0r71r-vtk-9.5.2/lib/python3.13/site-packages:/nix/store/c59c8iyv93r36798iss6rqk9chp62yrk-python3.13-ddt-1.7.2/lib/python3.13/site-packages:/nix/store/y3irnhd59hafs2q64qx6gqdwrvg2ipy4-python3.13-gitdb-4.0.12/lib/python3.13/site-packages:/nix/store/n2ddy2yqycpphmhymm3dafhn54742d0d-python3.13-smmap-6.0.0/lib/python3.13/site-packages:/nix/store/lip7b3j1y0m66zkn8xl69aphrk7wf3xs-python3.13-isodate-0.7.2/lib/python3.13/site-packages:/nix/store/iabbxp8pr24i65gy9j0snlcs43yl0gis-python3.13-lark-1.2.2/lib/python3.13/site-packages:/nix/store/rpna4a6amr7wcmh4z6vr097djqrsxraf-python3.13-numpy-2.3.4/lib/python3.13/site-packages:/nix/store/np88x2a5frhi1rbz30h4mm0rhc9qibq9-python3.13-python-dateutil-2.9.0.post0/lib/python3.13/site-packages:/nix/store/zav4zqffv56dbrambdbyb9wvsnqrwf2s-python3.13-shapely-2.1.1/lib/python3.13/site-packages:/nix/store/bxzy4vygdg35xazr5wrn22i0bww2milf-python3.13-typing-extensions-4.15.0/lib/python3.13/site-packages:/nix/store/36x9w673mr8n097z056z41hcxf77f844-python3.13-regex-2025.9.18/lib/python3.13/site-packages:/nix/store/7zgms92dkkzvhg89pk1938mgc9jwb5p6-python3.13-six-1.17.0/lib/python3.13/site-packages:/nix/store/jlashb3waw79l934iqwa1bwy9lgyivfp-python3.13-contourpy-1.3.3/lib/python3.13/site-packages:/nix/store/flwlhc8ipqiig5ihz3mnhfqgbivrhwc6-python3.13-cycler-0.12.1/lib/python3.13/site-packages:/nix/store/jfyaihzpl2sfjms7qi41n5zgdk0h7by0-python3.13-fonttools-4.60.1/lib/python3.13/site-packages:/nix/store/rd0j0nbmhlsz3kys6lhcmk2amjdg7gmr-python3.13-kiwisolver-1.4.8/lib/python3.13/site-packages:/nix/store/yd0np5437kd8ykmlfg1frwg8b98rlxci-python3.13-packaging-25.0/lib/python3.13/site-packages:/nix/store/7nqfjmmclivpjjr3wlfzp5v9kx4r4kfd-python3.13-pillow-12.1.0/lib/python3.13/site-packages:/nix/store/m3kgh929sqxca8yf93954jfp6f01z7rs-python3.13-pyparsing-3.2.3/lib/python3.13/site-packages:/nix/store/a19vvnf8h9vsk8z7bffm31qics53j46y-python3.13-tkinter-3.13.11/lib/python3.13/site-packages:/nix/store/rfnqwbdx852m1fjc2rgvl0453xcawl8k-python3.13-vtk-9.5.2/lib/python3.13/site-packages:/nix/store/2z0704cv7cgxy37m4l8gphyiks4s09i9-python3.13-wslink-2.5.0/lib/python3.13/site-packages:/nix/store/r751ri68iybz0a5cvx8vwfwpp7lbxsmv-python3.13-aiohttp-3.13.3/lib/python3.13/site-packages:/nix/store/5swninvj2a8ff22ihmpbf879v8finbd3-python3.13-msgpack-1.1.1/lib/python3.13/site-packages:/nix/store/s0mbr0zh9f2sqik6c5x1j2xgbiz86rvr-python3.13-aiohappyeyeballs-2.6.1/lib/python3.13/site-packages:/nix/store/7vjrlfznyzlvz2pqg27cbgx1rfgarlps-python3.13-aiosignal-1.4.0/lib/python3.13/site-packages:/nix/store/xfvc43y1hxwmc49xnl7vdhif1ymqaqzf-python3.13-attrs-25.3.0/lib/python3.13/site-packages:/nix/store/yg49752wx17h833r9kh9bwbq81wgis1s-python3.13-frozenlist-1.7.0/lib/python3.13/site-packages:/nix/store/kl2xbd2g8yfsznfx4947rf1ipb218b6g-python3.13-multidict-6.7.0/lib/python3.13/site-packages:/nix/store/8wds7dgsydcmqkm38akq59vx076hc5vh-python3.13-propcache-0.3.2/lib/python3.13/site-packages:/nix/store/iz42wa996xzxd3zpigasgirwnjdp4h5c-python3.13-yarl-1.22.0/lib/python3.13/site-packages:/nix/store/ilcary23h1q9dxxpcysj6bl2yii2bvqs-python3.13-aiodns-3.5.0/lib/python3.13/site-packages:/nix/store/pyj4c2bhy0k3fn9zs9r3fbb7kgdp8flf-python3.13-backports-zstd-1.0.0/lib/python3.13/site-packages:/nix/store/x2rkpfgnfx8xbc2k34mlr8xq1y85kg4q-python3.13-brotli-1.2.0/lib/python3.13/site-packages:/nix/store/9x3sv4y05jldx9l5wn4varfmzjdzq56c-python3.13-idna-3.11/lib/python3.13/site-packages:/nix/store/ffkg2192blwc4jvbg1zrk41jy5rn28ks-python3.13-pycares-4.9.0/lib/python3.13/site-packages:/nix/store/1n6r0dcrl6n2ssa925xplxn7wykjd55z-python3.13-cffi-2.0.0/lib/python3.13/site-packages:/nix/store/151b00zb3a5gyxshmr9y0kp4nrlnmp1r-python3.13-pycparser-2.23/lib/python3.13/site-packages' \
    --prefix 'XDG_DATA_DIRS' ':' '/nix/store/xlr3rn698ch27hzi38qarwfsxkd81865-gtk+3-3.24.51/share/gsettings-schemas/gtk+3-3.24.51' \
    --prefix 'QT_PLUGIN_PATH' ':' '/nix/store/4k866ha6z00ycf6ar4gxljnjh37nfl3l-qtbase-6.10.1-only-plugins-qml/lib/qt-6/plugins' \
    --prefix 'QT_PLUGIN_PATH' ':' '/nix/store/3085p6lnfv3rknz39flwi8zca36pvb9z-qtwayland-6.10.1-only-plugins-qml/lib/qt-6/plugins' \
    --prefix 'NIXPKGS_QT6_QML_IMPORT_PATH' ':' '/nix/store/3085p6lnfv3rknz39flwi8zca36pvb9z-qtwayland-6.10.1-only-plugins-qml/lib/qt-6/qml' \
    --prefix 'QT_PLUGIN_PATH' ':' '/nix/store/6smmk0pkb5vl8hc1rx0x5qri1p91a8qy-qtbase-6.10.1/lib/qt-6/plugins' \
    --prefix 'QT_PLUGIN_PATH' ':' '/nix/store/vjavqvmf5f6ia9pbzgiisw6wksbx75cm-qtsvg-6.10.1/lib/qt-6/plugins' \
    --prefix 'QT_PLUGIN_PATH' ':' '/nix/store/54vyfv5fwcxqw3zyhcvzj1m6c4g9xs9j-qtdeclarative-6.10.1/lib/qt-6/plugins' \
    --prefix 'NIXPKGS_QT6_QML_IMPORT_PATH' ':' '/nix/store/54vyfv5fwcxqw3zyhcvzj1m6c4g9xs9j-qtdeclarative-6.10.1/lib/qt-6/qml' \
    --prefix 'QT_PLUGIN_PATH' ':' '/nix/store/0byxii0i2j9bf1dw578714zdwgk8n6jg-qttools-6.10.1/lib/qt-6/plugins' \
    --prefix 'QT_PLUGIN_PATH' ':' '/nix/store/4laipr4izl09r87f4d774yl006hqxmx9-qtwayland-6.10.1/lib/qt-6/plugins' \
    --prefix 'NIXPKGS_QT6_QML_IMPORT_PATH' ':' '/nix/store/4laipr4izl09r87f4d774yl006hqxmx9-qtwayland-6.10.1/lib/qt-6/qml' \
    --prefix 'NIXPKGS_QT6_QML_IMPORT_PATH' ':' '/nix/store/whz69za75r0jikxnfaxm2m0y9v44fpnh-qtwebsockets-6.10.1/lib/qt-6/qml' \
    --prefix 'NIXPKGS_QT6_QML_IMPORT_PATH' ':' '/nix/store/03qxqxmzv999ywyy8b7b4alfvyswqm8h-qtwebchannel-6.10.1/lib/qt-6/qml' \
    --prefix 'QT_PLUGIN_PATH' ':' '/nix/store/1wckhxd4slpz2la1pdfslhbn6x3v6lqb-qtpositioning-6.10.1/lib/qt-6/plugins' \
    --prefix 'NIXPKGS_QT6_QML_IMPORT_PATH' ':' '/nix/store/1wckhxd4slpz2la1pdfslhbn6x3v6lqb-qtpositioning-6.10.1/lib/qt-6/qml' \
    --prefix 'QT_PLUGIN_PATH' ':' '/nix/store/fjnnx6j4il9i2l78x5r4nvv62lgzpb33-qtwebengine-6.10.1/lib/qt-6/plugins' \
    --prefix 'NIXPKGS_QT6_QML_IMPORT_PATH' ':' '/nix/store/fjnnx6j4il9i2l78x5r4nvv62lgzpb33-qtwebengine-6.10.1/lib/qt-6/qml' \
    --prefix 'XDG_DATA_DIRS' ':' '/nix/store/bbz28zzfxlv9c09scldqdb0jxklqy8vj-freecad-1.0.2/share'


# (Use `nix-shell -p makeBinaryWrapper` to get access to makeCWrapper in your shell)
# ------------------------------------------------------------------------------------

@qbisi
Copy link
Contributor Author

qbisi commented Feb 24, 2026

Adding "${gappsWrapperArgs[@]}" to qtWrapperArgs does not take effect, we should do

  preFixup = ''
    qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
  '';

instead.

However, i think this is not a real fix to #149812 #467783.

@qbisi qbisi closed this Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FreeCAD: FreeCAD 1.0.2 crashes when opening any file dialog

4 participants