Closed jcrben closed 5 years ago
I have no idea why it is failing. The backend is somehow not getting detected despite the GIO_EXTRA_MODULES being set correctly. Here is my test program:
#include <gio/gio.h>
int main() {
setenv("GIO_EXTRA_MODULES", "/nix/store/q8xbkrz0z7airmkd68dghnmfb92xjvyq-glib-networking-2.56.0/lib/gio/modules", 1);
return !g_tls_backend_supports_tls (g_tls_backend_get_default ());
}
// Local Variables:
// compile-command: "nix-shell -p glib glib-networking pkgconfig --run 'cc test.c $(pkg-config --cflags --libs gio-unix-2.0) && ./a.out'"
// End:
Weird the code works just fine on Linux, Maybe glib-networking
does not compile with TLS, relying on platform libraries, though the darwin package seems to have the same set of modules as the linux one. Maybe try strace ./a.out
.
Any progress? I encounter same issue here...
Note that for now you can run:
nix run -f channel:nixpkgs-18.03-darwin gimp -c gimp
For an older gimp version (2.8.22).
Possible issue is that the modules in ${glib-networking}/lib/gio/modules
have .dylib
extension, while glib expects .so
according to https://github.com/NixOS/nixpkgs/pull/41559
Issue description
fyi @jtojnar get:
Note also that I have 2.8 installed with homebrew - possible issue?
Steps to reproduce
nix-env -i -A nixpkgs.gimp
Technical details
running High Sierra (17E199)
nix show-config
(not sure if that's helpful)