nip/docs/cli/nip_graft.md

24 lines
704 B
Markdown

# nip graft
## Description
Downloads and extracts a Pacman package into `/tmp/nexusos/Programs/App/Version/` with BLAKE2b-verified `graft.log`. Supports deduplication.
## Example
```bash
nip graft pacman neofetch
```
## Status
- Prototype working (17 July 2025).
- Fixed `blake2b` errors, using `getBlake2b` for BLAKE2b hashing.
- Outputs to `/tmp/nexusos/Programs` with `graft.log`.
## Notes
- BLAKE2b (256-bit) used for secure deduplication and integrity.
- Requires `nimble install blake2`.
- Tested with `neofetch-7.1.0`.
## Next Steps
- Auto-detect package version from Pacman.
- Integrate with `nip convert` for `.npk` generation.
- Add dependency handling.