This repository contains Nix packages for use in the FIRST Robotics Competition.
Try it out by running a development tool
nix run github:frc4451/frc-nix#sysid # or glass, pathplanner, datalogtool, etc.
The simgui in WPILib is kinda weird. For Java a couple prerequisites must be met for it to launch:
You must be using the proper JDK which is normally the JDK that comes in the WPILib installer, sadly it is not currently packaged by this project. Once you have it installed, set $JAVA_HOME
to it's location, from your shell export JAVA_HOME="$HOME"/wpilib/2025/jdk/
should normally suffice.
$HALSIM_EXTENSIONS
must be set to a validlibhalsim_gui.so
.- One can be found in the
build/
folder of your repository. - Alternatively add
wpi.sim.addGui().defaultEnabled = true
to yourbuild.gradle
You can either set these up in your shell by sourcing a script similar to the one below (this script assumes that you are in the root of your project directory when being ran) or mak
export HALSIM_EXTENSIONS="$PWD"/build/jni/release/libhalsim_gui.so # if not setting up build.gradle
export JAVA_HOME="$HOME"/wpilib/2025/jdk/
./gradlew simulateJava