# How to add a dependency to build.zig.zon

**URL:** <https://ziggit.dev/t/how-to-add-a-dependency-to-build-zig-zon/6769>\
**Category:** Help\
**Tags:** build-system\
**Created:** [November 9, 2024, 1:19am UTC](https://ziggit.dev/t/how-to-add-a-dependency-to-build-zig-zon/6769 "2024-11-09T01:19:42Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![AndrewKraevskii](https://ziggit.dev/user_avatar/ziggit.dev/andrewkraevskii/32/2564_2.png) [@AndrewKraevskii](https://ziggit.dev/u/AndrewKraevskii)\
**Post date:** [November 9, 2024, 6:29am UTC](https://ziggit.dev/t/how-to-add-a-dependency-to-build-zig-zon/6769/7 "2024-11-09T06:29:15Z")

</div>

> [@Does zig.zon not support non zig based projects](https://ziggit.dev/t/does-zig-zon-not-support-non-zig-based-projects/6125/2):
>
> $ zig fetch --help Usage: zig fetch [options] \<url\> Usage: zig fetch [options] \<path\> Copy a package into the global cache and print its hash. Options: -h, --help Print this help and exit --global-cache-dir [path] Override path to global Zig cache directory --debug-hash Print verbose hash information to stdout --save Add the fetched package to build.zig.zon --save=[name] Add the fetched package to buil…

---

_[View the full topic](https://ziggit.dev/t/how-to-add-a-dependency-to-build-zig-zon/6769)._
