oils-for-unix-from-source/README.md

20 lines
692 B
Markdown
Raw Permalink Normal View History

# oils-for-unix from source
```bash
2026-02-16 12:28:25 -08:00
nix-build .
```
2026-02-16 12:28:25 -08:00
Builds OSH and YSH shell interpreters from git source using upstream-style wedges.
## Files
2026-02-16 12:28:25 -08:00
- `package.nix` - Main oils-for-unix derivation
- `wedges.nix` - Python 2.7.18, Python 3.10.4, and mypy 0.780 built from source
- `requirements.txt` - Pinned pip dependencies for mypy
## Why wedges?
The build uses Python 2 for legacy build scripts and mypy 0.780 (last version with `--py2` support). Rather than depending on nixpkgs Python packages (which have compatibility issues), we build Python from official tarballs - mirroring oils' own `build/deps.sh` wedge system.
Python is only used at build time; final binaries are native C++.