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.
NIS
21 August 2024 20:35
3
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.
NIS
23 October 2024 18:07
5
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
];
1 Like
fgaz
13 November 2025 16:30
6
The nix-ld solution worked for me, but I had to remove remarkable-toolchain, add ncurses and libtiff, and patch libqtiff like so:
patchelf -- --replace-needed libtiff.so.5 libtiff.so ~/SailfishOS/lib/Qt/plugins/imageformats/libqtiff.so
1 Like
NIS
13 November 2025 16:38
7
I also had to remove this