No description
- Nix 100%
|
Malik
af4cfc8f36
- Remove hash field from IPFSBlock struct; content hash is resolved at fetch time rather than stored in the block - rawFetcher uses b.cid.hash directly (raw: CID hash == content hash) - dagPbFileFetcher delegates to getDagPbFileHash stub (throws until CAR-based hash resolution is implemented) - Simplify dagPbFileBlock restriction to b.path != null - Remove hash from mkBlockArgs and mkBlock (dag-pb file hash will be derived automatically; raw hash comes from CID) - fetchFromIpfs retains hash parameter for cid.parseHash construction - Remove testFetchFromIpfsDagPbWithHash (explicit hash no longer supported for dag-pb file blocks) |
||
|---|---|---|
| .forgejo/workflows | add action | |
| checks | refactor(lib): group multiformats specs under lib/multiformats/ | |
| lib | refactor(ipfs): remove hash from block type; stub dag-pb file hash resolution | |
| modules | feat: add NixOS/home-manager module for configurable IPFS gateway | |
| tests | refactor(ipfs): remove hash from block type; stub dag-pb file hash resolution | |
| .gitignore | refactor: centralize checks in checks.nix | |
| AGENTS.md | Initial Commit | |
| CONTRIBUTING.md | add CONTRIBUTING.md | |
| flake.lock | add yants | |
| flake.nix | add yants | |
| LICENSE.md | Add licence | |
| README.md | add CONTRIBUTING.md | |
| treefmt.nix | remove unused parameters | |
nix-cafeteria
Experimental playground for content-addressed fetchers in Nix.
The goal is to develop and test Nix functions such as fetchFromIPFS
and fetchFromRadicle that fetch sources via content-addressing protocols
rather than location-based URLs — with the long-term aim of contributing
them to nixpkgs.
This work is related to the Pre-RFC: Generic content-addressed fetchers (IPFS, Radicle, etc.) on the NixOS Discourse.
Status
Early experiment. Nothing here is production-ready.
Contributing
please read the Contributing guidelines before suggesting changes.