19 lines
692 B
Markdown
19 lines
692 B
Markdown
# oils-for-unix from source
|
|
|
|
```bash
|
|
nix-build .
|
|
```
|
|
|
|
Builds OSH and YSH shell interpreters from git source using upstream-style wedges.
|
|
|
|
## Files
|
|
|
|
- `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++.
|