stm32cubeide works now under nixos

This commit is contained in:
Priec
2025-10-13 22:51:02 +02:00
commit 8ff58b3ceb
2 changed files with 68 additions and 0 deletions

41
flake.nix Normal file
View File

@@ -0,0 +1,41 @@
{
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";
};
};
}