Hello I am trying to set up a nix shell for a project that needs some libraries to run. It works fine from our Dockerfile which uses alpine. However when I try to use nix, I get an error when the application starts:
Error: /nix/store/c4r7zy8ybhpghgis36x67ry9nd3qd6xw-devenv-profile/lib/libpango-1.0.so.0: undefined symbol: g_memdup2
I figured out that g_memdup2
comes from glib, so I tried adding that as one of the build inputs to my shell, but then I just got another error from another undefined symbol. I don’t really understand why glib is not added automatically or why it cannot be found by my application.
The current state of the shell that i am setting up
pkgs.mkShell {
propagatedBuildInputs = [
pkgs.python3
pkgs.libpng
pkgs.pkg-config
pkgs.cairo
pkgs.pango
pkgs.libjpeg
pkgs.giflib
pkgs.librsvg
pkgs.pixman
];
};