I want to run BIOVIA Discovery Studio Visualizer 2025 on NixOS 25.05. It’s installed via a .bin file. I’ve run the installer, but to run the app it seems I’ll need to set up nix-ld with these libraries:
alsa-lib
audit-libs
bc
bzip2-libs
cairo
compat-libstdc++-33
compat-libtiff3
e2fsprogs-libs
expat
fontconfig
freetype
gd
glib2
glibc
keyutils-libs
krb5-libs
libdrm
libgcc
libICE
libjpeg-turbo
libnsl
libpcap
libpng15
libselinux
libsepol
libSM
libstdc++
libX11
libXau
libXdamage
libXdmcp
llibXext
libXfixes
libXi
libXinerama
libXmu
libXpm
libXrender
libXt
libXtst
libXxf86vm
pam
tcsh
zlib
Many of these I’ve found in NixOS’ repos. I’ve added these libraries to nix-ld:
alsa-lib
audit
cairo
libtiff
e2fsprogs
expat
fontconfig
freetype
gd
glib
glibc
keyutils
krb5
libdrm
libgcc
#libstdcxx
bc
bzip2
xorg.libICE
#libice
libjpeg_turbo
libnsl
libpcap
libpng
libselinux
libsepol
xorg.libSM
#libsm
#libx11
xorg.libX11
#libxau
xorg.libXau
#libxdamage
xorg.libXdamage
zlib
tcsh
pam_krb5
pam_p11
#libxxf86vm
xorg.libXxf86vm
#libxtst
xorg.libXtst
#libxt
xorg.libXt
#libxrender
xorg.libXrender
#libxpm
xorg.libXpm
#libxmu
xorg.libXmu
#libxinerama
xorg.libXinerama
#libxi
xorg.libXi
#libxfixes
xorg.libXfixes
#libxext
xorg.libXext
#libxdmcp
xorg.libXdmcp
Now BIOVIA Discovery Studio Visualizer complains libpcre2-16.so is missing when I try to launch it. I tried adding tests.pkg-config.defaultPkgConfigPackages.libpcre2-16 to nix-ld, but this lead to the rebuild error:
these 12 derivations will be built:
/nix/store/q4ppbkf319f7gi4x848kqjgnnyj7hwl0-ld-library-path.drv
/nix/store/ggqs6phmysffnw2ziv680w4b3mig6xbg-system-path.drv
/nix/store/wrvfm7l1i7lvq94qpipkz51fbvmzgvak-X-Restart-Triggers-polkit.drv
/nix/store/bnl9q1d6l167fm523z94k6qws9cyhpcc-unit-polkit.service.drv
/nix/store/kyr5l7j37g07d6r7aa75wm4wr0a3mhs3-dbus-1.drv
/nix/store/jb65d7vxnwcvf9bwigdv7a061fa7s9ka-X-Restart-Triggers-dbus.drv
/nix/store/lqxx4rivgvm7l567hna1d148wadmwcw2-unit-dbus.service.drv
/nix/store/985ai7a9pq3hpipf6s091psr7qiqkj05-system-units.drv
/nix/store/pgxpffrviy22wp4y4xi0qrxkwgf75v6k-unit-dbus.service.drv
/nix/store/srbvchfnxhiiji96vivq2qjgm453sd9k-user-units.drv
/nix/store/sv9f21ynk5li3brh5zgzvg36m2i17rps-etc.drv
/nix/store/8nmr2w27csk64zadm48s0217ab3padfd-nixos-system-nixos-25.05.812242.3de8f8d73e35.drv
this path will be fetched (0.00 MiB download, 0.00 MiB unpacked):
/nix/store/c77lrxzaqfm9d17iqapwi94rbs2gzmax-check-pkg-config-pcre2
copying path '/nix/store/c77lrxzaqfm9d17iqapwi94rbs2gzmax-check-pkg-config-pcre2' from 'https://cache.nixos.org'...
building '/nix/store/q4ppbkf319f7gi4x848kqjgnnyj7hwl0-ld-library-path.drv'...
warning: collision between `/nix/store/5cdzaagddbzip0rd0f9bfkfnq143bxd8-krb5-1.21.3-lib/lib/libcom_err.so' and `/nix/store/ldlkl531yapf8xwla348lx4xqik5a69v-e2fsprogs-1.47.2/lib/libcom_err.so'
error: The store path /nix/store/c77lrxzaqfm9d17iqapwi94rbs2gzmax-check-pkg-config-pcre2 is a file and can't be merged into an environment using pkgs.buildEnv! at /nix/store/2awfh7sr3vf9d0ir666fi5qm03ng35sp-builder.pl line 115.
error: builder for '/nix/store/q4ppbkf319f7gi4x848kqjgnnyj7hwl0-ld-library-path.drv' failed with exit code 2
error: 1 dependencies of derivation '/nix/store/ggqs6phmysffnw2ziv680w4b3mig6xbg-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/8nmr2w27csk64zadm48s0217ab3padfd-nixos-system-nixos-25.05.812242.3de8f8d73e35.drv' failed to build