{"id":13473809,"url":"https://github.com/mitchellh/zig-overlay","last_synced_at":"2025-05-16T04:03:39.337Z","repository":{"id":58965738,"uuid":"527757474","full_name":"mitchellh/zig-overlay","owner":"mitchellh","description":"Nix flake for the Zig compiler.","archived":false,"fork":false,"pushed_at":"2025-05-11T12:11:30.000Z","size":6419,"stargazers_count":350,"open_issues_count":16,"forks_count":43,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-05-11T13:24:33.501Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mitchellh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-08-22T22:57:15.000Z","updated_at":"2025-05-11T12:11:33.000Z","dependencies_parsed_at":"2024-02-05T01:29:03.276Z","dependency_job_id":"9fe0e229-f3ff-4f74-975b-f2f6fb727fc1","html_url":"https://github.com/mitchellh/zig-overlay","commit_stats":{"total_commits":1096,"total_committers":15,"mean_commits":73.06666666666666,"dds":0.07116788321167888,"last_synced_commit":"38c1262ba77d11a66c0f91b4e3cee7c8980699f4"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchellh%2Fzig-overlay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchellh%2Fzig-overlay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchellh%2Fzig-overlay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchellh%2Fzig-overlay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitchellh","download_url":"https://codeload.github.com/mitchellh/zig-overlay/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254464891,"owners_count":22075570,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T16:01:07.095Z","updated_at":"2025-05-16T04:03:39.313Z","avatar_url":"https://github.com/mitchellh.png","language":"Nix","readme":"# Nix Flake for Zig\n\nThis repository is a Nix flake packaging the [Zig](https://ziglang.org)\ncompiler. The flake mirrors the binaries built officially by Zig and\ndoes not build them from source.\n\nThis repository is meant to be consumed primarily as a flake but the\n`default.nix` can also be imported directly by non-flakes, too.\n\nThe flake outputs are documented in `flake.nix` but an overview:\n\n  * Default package and \"app\" is the latest released version\n  * `packages.\u003cversion\u003e` for a tagged release\n  * `packages.master` for the latest nightly release\n  * `packages.master-\u003cdate\u003e` for a nightly release\n  * `overlays.default` is an overlay that adds `zigpkgs` to be the packages\n    exposed by this flake\n  * `templates.compiler-dev` to setup a development environment for Zig\n    compiler development.\n\n## Usage\n\n### Flake\n\nIn your `flake.nix` file:\n\n```nix\n{\n  inputs.zig.url = \"github:mitchellh/zig-overlay\";\n\n  outputs = { self, zig, ... }: {\n    ...\n  };\n}\n```\n\nIn a shell:\n\n```sh\n# run the latest released version\n$ nix run 'github:mitchellh/zig-overlay'\n# open a shell with nightly version dated 2021-02-13 (oldest version available)\n$ nix shell 'github:mitchellh/zig-overlay#master-2021-02-13'\n# open a shell with latest nightly version\n$ nix shell 'github:mitchellh/zig-overlay#master'\n```\n\n### Compiler Development\n\nThis flake outputs a template that makes it easy to work on the Zig\ncompiler itself. If you're looking to contribute to the Zig compiler,\nhere are the easy steps to setup a working development environment:\n\n```sh\n# clone zig and go into that directory\n$ git clone https://github.com/ziglang/zig.git\n$ cd zig\n# setup the template\n$ nix flake init -t 'github:mitchellh/zig-overlay#compiler-dev'\n# Two options:\n# (1) start a shell, this forces bash\n$ nix develop\n# (2) If you have direnv installed, you can start the shell environment\n# in your active shell (fish, zsh, etc.):\n$ direnv allow\n```\n\n## FAQ\n\n### Why is a Nightly Missing?\n\nThere are two possible reasons:\n\n1. The Zig download JSON that is used to generate this overlay only shows\nthe latest _master_ release. It doesn't keep track of historical releases.\nIf this overlay wasn't running or didn't exist at the time of a release,\nwe could miss a day. This is why historical dates beyond a certain point\ndon't exist; they predate this overlay (or original overlays this derives\nfrom).\n\n2. The official Zig CI only generates a master release if the CI runs \nfull green. During certain periods of development, a full day may go by\nwhere the master branch of the Zig compiler is broken. In this scenario,\na master build (aka \"nightly\") is not built or released at all.\n\n## Thanks\n\nThe `sources.json` file was originally from another Zig overlay repository\nhosted by the username `arqv`. This user and repository was deleted at some\npoint, so I started a new flake based on the same `sources.json` format\nthey used so I could inherit the history. Thank you for compiling nightly\nrelease information since 2021!\n","funding_links":[],"categories":["Nix","Overlays","Fundamentals"],"sub_categories":["Webinterface","Package and Version Manager"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitchellh%2Fzig-overlay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitchellh%2Fzig-overlay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitchellh%2Fzig-overlay/lists"}