8000 GitHub - taciturnaxolotl/frc-nix: A distribution of Nix packages and NixOS modules for use in the FIRST Robotics Competition.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A distribution of Nix packages and NixOS modules for use in the FIRST Robotics Competition.

Notifications You must be signed in to change notification settings

taciturnaxolotl/frc-nix

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A NixOS Distribution for FRC

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.

Why doesn't my Simulation GUI work?

The simgui in WPILib is kinda weird. For Java a couple prerequisites must be met for it to launch:

1) Proper JDK

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.

2) Simgui Enabled

  • $HALSIM_EXTENSIONS must be set to a valid libhalsim_gui.so.
  • One can be found in the build/ folder of your repository.
  • Alternatively add wpi.sim.addGui().defaultEnabled = true to your build.gradle

3) Env Setup

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/

4) 🎉

./gradlew simulateJava

About

A distribution of Nix packages and NixOS modules for use in the FIRST Robotics Competition.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages

  • Nix 63.4%
  • TypeScript 14.8%
  • Clojure 13.0%
  • Nushell 5.7%
  • Shell 3.1%
0