Created
March 3, 2020 03:23
-
-
Save jjwatt/18c9d05b83e18a691243dd434d96eebb to your computer and use it in GitHub Desktop.
Getting OpenSTM32 System Workbench to work on Nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.