Skip to content

Instantly share code, notes, and snippets.

@HelloWorld017
Last active January 18, 2026 08:55
Show Gist options
  • Select an option

  • Save HelloWorld017/0f0f5ef794656ba401e50e9cf393d750 to your computer and use it in GitHub Desktop.

Select an option

Save HelloWorld017/0f0f5ef794656ba401e50e9cf393d750 to your computer and use it in GitHub Desktop.
SPFlashTools Flake

SPFlashTools devShells Flake

It's might better to do wrapQtAppsHook.
Maybe I'll do it next time when I need it.

{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
devShells.${system}.default = pkgs.mkShell {
buildInputs = with pkgs; [
qt5.qtwayland
];
shellHook = let
libraries = with pkgs; [
# System Utils
dbus
glib
stdenv.cc.cc.lib
libkrb5
libGL
libxkbcommon
wayland
zlib
# Qt Libraries
qt5.qtbase
qt5.qtserialport
qt5.qtwayland
qt5.qtxmlpatterns
libsForQt5.qt5.qtwayland
];
in ''
export LD_LIBRARY_PATH="${pkgs.lib.makeLibraryPath libraries}:$LD_LIBRARY_PATH"
export QT_PLUGIN_PATH="${pkgs.qt5.qtbase}/${pkgs.qt5.qtbase.qtPluginPrefix}:${pkgs.qt5.qtwayland}/${pkgs.qt5.qtbase.qtPluginPrefix}"
export QT_QPA_PLATFORM=wayland
'';
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment