/zon2nix

Convert the dependencies in `build.zig.zon` to a Nix expression

Primary LanguageZigMozilla Public License 2.0MPL-2.0

zon2nix

Convert the dependencies in build.zig.zon to a Nix expression

Usage

zon2nix > deps.nix
zon2nix zls > deps.nix
zon2nix zls/build.zig.zon > deps.nix

To use the generated file, add this to your Nix expression:

postPatch = ''
  ln -s ${callPackage ./deps.nix { }} $ZIG_GLOBAL_CACHE_DIR/p
'';