Sailfish SDK on NixOS?

Hi,

has anyone experience with installing the SailfishOS Application SDK on NixOS?
Has anyone ever even tried?
Because the normal installer won’t run on NixOS (by design), so I’m wondering what would be the best solution to install it (there are five possibilities mentioned here)

Thanks in advance!

Did you eventually solve this issue? A simple escape hatch is to use Distrobox.

No, I didn’t solve it yet. Thanks for the hint with Distrobox, I need to try that. But I wonder, would the SDK even be able to connect to the BuildVM and physical device if it runs in distrobox?

Maybe. But perhaps it gives you some trouble.

Another possibility is to use a FHSUserEnv within NixOS.

I can try to lend a hand to package it, if I know how!

You can also open an issue on NixPkgs and someone might package it.

Update: I managed to get it working with Nix-LD with a little help from nix-autobahn. I used this Nix-LD config:

programs.nix-ld.enable = true;
  programs.nix-ld.libraries = with pkgs; [
    alsa-lib
    at-spi2-atk
    at-spi2-core
    atk
    cairo
    cups
    curl
    dbus
    expat
    fontconfig
    freetype
    fuse3
    gdk-pixbuf
    glib
    gtk3
    icu
    libGL
    libappindicator-gtk3
    libdrm
    libglvnd
    libnotify
    libpulseaudio
    libunwind
    libusb1
    libuuid
    libxkbcommon
    libxml2
    mesa
    nspr
    nss
    openssl
    pango
    pipewire
    stdenv.cc.cc
    systemd
    vulkan-loader
    xorg.libX11
    xorg.libXScrnSaver
    xorg.libXcomposite
    xorg.libXcursor
    xorg.libXdamage
    xorg.libXext
    xorg.libXfixes
    xorg.libXi
    xorg.libXrandr
    xorg.libXrender
    xorg.libXtst
    xorg.libxcb
    xorg.libxkbfile
    xorg.libxshmfence
    xorg.xcbutilwm
    xorg.xcbutilimage
    xorg.xcbutilrenderutil
    xorg.xcbutilkeysyms
    xorg.libSM
    xorg.libICE
    libGL
    zulu8
    remarkable-toolchain
    kdePackages.wayland
    harfbuzz
    zlib

  ];