Skip to content

Sparrow doesn’t start on nixOS (aarch64) #1554

@theprivacydesigner

Description

@theprivacydesigner

I’m trying to run Sparrow on nixOS aarch64.
I’m getting this crash as soon as I launch Sparrow, though:

MESA: error: ZINK: failed to choose pdev
glx: failed to create drisw screen
No display detected. Use Sparrow Server on a headless (no display) system.

2024-12-05 22:48:17,533 ERROR [main] c.s.s.SparrowWallet [null:-1] Unable to launch application
java.lang.UnsupportedOperationException: Unable to load glass GTK library.
at javafx.graphics@22/com.sun.glass.ui.gtk.GtkApplication.lambda$new$5(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at javafx.graphics@22/com.sun.glass.ui.gtk.GtkApplication.(Unknown Source)
at javafx.graphics@22/com.sun.glass.ui.gtk.GtkPlatformFactory.createApplication(Unknown Source)
at javafx.graphics@22/com.sun.glass.ui.Application.run(Unknown Source)
at javafx.graphics@22/com.sun.javafx.tk.quantum.QuantumToolkit.startup(Unknown Source)
at javafx.graphics@22/com.sun.javafx.application.PlatformImpl.startup(Unknown Source)
at javafx.graphics@22/com.sun.javafx.application.PlatformImpl.startup(Unknown Source)
at javafx.graphics@22/com.sun.javafx.application.LauncherImpl.startToolkit(Unknown Source)
at javafx.graphics@22/com.sun.javafx.application.LauncherImpl.launchApplication1(Unknown Source)
at javafx.graphics@22/com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)

System

  • Sparrow Wallet 2.0.0
  • nixOS 24.05.6668

Details
NixOS offers a Sparrow package but it isn’t compatible with aarch64.
This means it’s necessary to rely on the generic Sparrow binary and nix-ld.
NixOS cannot run dynamically linked executables and requires instead to create a library path that only applies to Sparrow.
The difficult part is listing out all the libraries Sparrow might need.
So far I have:

  • xorg.libX11
  • libGL
  • gtk4

Could you please help me figure out which other libraries Sparrow relies on?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions