{ description = "STM32CubeIDE wrapped for NixOS with FHS bubblewrap"; inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05"; outputs = { self, nixpkgs }: let system = "x86_64-linux"; pkgs = import nixpkgs { inherit system; }; in { packages.${system}.default = pkgs.buildFHSEnvBubblewrap { name = "stm32cubeide"; targetPkgs = pkgs: with pkgs; [ glib gtk3 gtk4 libGL libGLU xorg.libX11 xorg.libXext xorg.libXrender xorg.libXtst libpng zlib ncurses5 cups fontconfig freetype stdenv.cc.cc bash ]; runScript = "/opt/st/stm32cubeide_1.19.0/stm32cubeide_wayland"; }; apps.${system}.default = { type = "app"; program = "${self.packages.${system}.default}/bin/stm32cubeide"; }; }; }