build.zig.zon 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. .{
  2. // This is the default name used by packages depending on this one. For
  3. // example, when a user runs `zig fetch --save <url>`, this field is used
  4. // as the key in the `dependencies` table. Although the user can choose a
  5. // different name, most users will stick with this provided value.
  6. //
  7. // It is redundant to include "zig" in this name because it is already
  8. // within the Zig package namespace.
  9. .name = .berlisp,
  10. // This is a [Semantic Version](https://semver.org/).
  11. // In a future version of Zig it will be used for package deduplication.
  12. .version = "0.0.0",
  13. // Together with name, this represents a globally unique package
  14. // identifier. This field is generated by the Zig toolchain when the
  15. // package is first created, and then *never changes*. This allows
  16. // unambiguous detection of one package being an updated version of
  17. // another.
  18. //
  19. // When forking a Zig project, this id should be regenerated (delete the
  20. // field and run `zig build`) if the upstream project is still maintained.
  21. // Otherwise, the fork is *hostile*, attempting to take control over the
  22. // original project's identity. Thus it is recommended to leave the comment
  23. // on the following line intact, so that it shows up in code reviews that
  24. // modify the field.
  25. .fingerprint = 0x388f4ce945de35c9, // Changing this has security and trust implications.
  26. // Tracks the earliest Zig version that the package considers to be a
  27. // supported use case.
  28. .minimum_zig_version = "0.14.0",
  29. // This field is optional.
  30. // Each dependency must either provide a `url` and `hash`, or a `path`.
  31. // `zig build --fetch` can be used to fetch all dependencies of a package, recursively.
  32. // Once all dependencies are fetched, `zig build` no longer requires
  33. // internet connectivity.
  34. .dependencies = .{
  35. .mecha = .{
  36. .url = "https://github.com/Hejsil/mecha/archive/refs/tags/0.10.0.tar.gz",
  37. .hash = "mecha-0.10.0-dVGaSJ5aAQAUbK6I2T6_IbQg2AhAfG7f7wnraltqvJpP",
  38. },
  39. .zg = .{
  40. .url = "https://codeberg.org/atman/zg/archive/master.tar.gz",
  41. .hash = "zg-0.13.5-oGqU3I6Z7QLV3PcngiIPop2sAiHj740sK36VsXmYUMAp",
  42. },
  43. },
  44. .paths = .{
  45. "build.zig",
  46. "build.zig.zon",
  47. "src",
  48. // For example...
  49. //"LICENSE",
  50. //"README.md",
  51. },
  52. }