Skip to content

feat(devx): package with Nix flake #1092

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

GuillaumeDesforges
Copy link

Nix is a package manager that aims for ease of distribution and reproducibility.

This first iteration provides a flake
(https://wiki.nixos.org/wiki/Flakes) that allows installing and using LeRobot in a single line: nix develop.

To do so, this commit:

  • packages draccus (not on nixpkgs yet)
  • packages lerobot
  • provides a nixpkgs overlay to have draccus and lerobot in python packages
  • provides a minimal Python dev shell with lerobot installed.

How it was tested

I've tested the first example (loads dataset). Even if torchcodec is not installed (currently not available in nixpkgs), it does load the dataset and can load the first sample.

I have also tested the dataset visualization in scripts.

How to checkout & try? (for the reviewer)

On Linux (x86 64):

  1. install Nix
  2. run nix --option 'extra-experimental-features' 'nix-command flakes' develop

Nix is a package manager that aims for ease of distribution and
reproducibility.

This first iteration provides a flake
(https://wiki.nixos.org/wiki/Flakes) that allows installing and using LeRobot
in a single line: `nix develop`.

To do so, this commit:
- packages draccus (not on nixpkgs yet)
- packages lerobot
- provides a nixpkgs overlay to have draccus and lerobot in python
  packages
- provides a minimal Python dev shell with `lerobot` installed.
@imstevenpmwork imstevenpmwork added enhancement Suggestions for new features or improvements dependencies Concerns about external packages, libraries, or versioning labels May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Concerns about external packages, libraries, or versioning enhancement Suggestions for new features or improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants