stm32cubeide works now under nixos
This commit is contained in:
27
flake.lock
generated
Normal file
27
flake.lock
generated
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1760139962,
|
||||
"narHash": "sha256-4xggC56Rub3WInz5eD7EZWXuLXpNvJiUPahGtMkwtuc=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "7e297ddff44a3cc93673bb38d0374df8d0ad73e4",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-25.05",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
||||
41
flake.nix
Normal file
41
flake.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user