main
← blaggacao:build/add-nix-build-env
opened 09:54PM - 29 Mar 25 UTC
### Solved Problem
`Tools/setup/ubuntu.sh` is for Ubuntu.
`nix develop --profil…e profiles/dev --command $SHELL` inside the repository root is for **all**.
### Solution
- Install nix https://nixos.org/download/
- [x] `nix develop --profile profiles/dev --command $SHELL && make px4_sitl`
- [ ] Verify other targets
- [ ] Also build gazebo, see intend: https://github.com/ArcturusNavigation/arcturus_nix/issues/10
### Changelog Entry
For release notes:
```
Feature: Nix build environment
Documentation: May be considered experimental, no docs recommended.
```
### Alternatives
We could also use guix...
### Test coverage
- [x] `make px4_sitl` built successfully
- [ ] sitl target can run simulation successfully
### Context
https://discuss.px4.io/t/nix-based-build-deploy-pipeline/44486