Skip to content

Instantly share code, notes, and snippets.

@jjwatt
Created March 3, 2020 03:23
Show Gist options
  • Save jjwatt/18c9d05b83e18a691243dd434d96eebb to your computer and use it in GitHub Desktop.
Save jjwatt/18c9d05b83e18a691243dd434d96eebb to your computer and use it in GitHub Desktop.
Getting OpenSTM32 System Workbench to work on Nix
{ pkgs ? import <nixpkgs> {} }:
(pkgs.buildFHSUserEnv {
name = "stupid-java-installer-bs-env";
targetPkgs = pkgs: (with pkgs;
[ bash
oraclejdk8
gtk2
gnome2.glib
xorg.libXext
xorg.libXtst
]);
runScript = "bash";
}).env
@mikeyj001
Copy link

@jjwatt did you ever get stm32cubeide to work? I need it now, and just started to create an expression. I don't know how long it will take for me to successfully create the package.

@mikeyj001
Copy link

I have finally gotten stm32cubeide to run. This involved downloading the zip and changing the shebang in all of the *.sh files. Then I had to patch the stm32cubeide executable and run it as root. I also patched the stlink server executable, but while it runs, the IDE can't link to it, so still working on it.

I installed the nixos stlink package, but while it connects, the IDE complains about it not being the newest version.

Udev might be the issue I'm facing, so I'll try adding the line that jjwatt added and see what happens.

I aim to make a derivation, but the initial issue is that the user has to log in to download the zip file, which I don't know how to handle. I can't get the URL for the download.

I might end up using platformio after all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment