zig-overlay icon indicating copy to clipboard operation
zig-overlay copied to clipboard

Nix flake for Zig binaries

#+TITLE: Nix flake for Zig

  • IMPORTANT: I cannot continue maintaining this, and I do not want it to go into a decaying state where issues can arise and no one to fix them. I will continue to check any pull requests that people send to fix whatever problems come, but it would be nice to have someone willing to takeover this project and continue maintaining it.

    If you want to, please send me an email (it's on my GitHub profile) so we can discuss it. Thanks

** Description In this repository lives a Nix flake packaging the Zig compiler binaries using the [[https://ziglang.org/download/index.json][data]] provided by the Zig team.

*** Provided utilities

  • /Nightly/ versions updated daily (=.master.=), starting from version =0.8.0-dev.1140+9270aae07= dated 2021-02-13, and latest master (=.master.latest=) for the sake of convenience.
  • Release versions.

*** Usage In your =flake.nix= file: #+begin_src nix { inputs.zig.url = "github:roarkanize/zig-overlay"; outputs = { self, zig, ... }: { ... }; } #+end_src In a shell: #+begin_src sh # run the latest version (0.7.1) $ nix run 'github:roarkanize/zig-overlay' # open a shell with master version dated 2021-02-13 (oldest version available) $ nix shell 'github:roarkanize/zig-overlay#master."2021-02-13"' # open a shell with latest master version $ nix shell 'github:roarkanize/zig-overlay#master.latest' #+end_src

** For contributors The =update= script manages updating the information in =sources.json=. The only dependency is Nix, and it's written internally in Ruby.