Add stm32cubemx in dev shell

This commit is contained in:
Alexander Heldt
2024-12-30 11:39:53 +01:00
parent a3c1de878a
commit 908cfda5b3

View File

@@ -5,7 +5,8 @@
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
}; };
outputs = { nixpkgs, ... }: outputs =
{ nixpkgs, ... }:
let let
systems = [ "x86_64-linux" ]; systems = [ "x86_64-linux" ];
in in
@@ -14,9 +15,14 @@
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
}; };
devShells = nixpkgs.lib.genAttrs systems (system: devShells = nixpkgs.lib.genAttrs systems (
system:
let let
pkgs = nixpkgs.legacyPackages.${system}; # pkgs = nixpkgs.legacyPackages.${system};
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in in
{ {
default = pkgs.mkShell { default = pkgs.mkShell {
@@ -27,6 +33,7 @@
pkgs.gdb pkgs.gdb
pkgs.openocd pkgs.openocd
pkgs.gdbgui pkgs.gdbgui
pkgs.stm32cubemx
]; ];
}; };
} }