mirror of
https://github.com/mitchellh/zig-overlay.git
synced 2025-02-05 08:52:48 +02:00
21 lines
705 B
Nix
21 lines
705 B
Nix
{
|
|
description = "Zig compiler binaries.";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, flake-utils, ... }:
|
|
# List of systems where binaries are provided.
|
|
let
|
|
systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ];
|
|
in flake-utils.lib.eachSystem systems (system:
|
|
let pkgs = nixpkgs.legacyPackages.${system};
|
|
in rec {
|
|
packages = import ./default.nix { inherit system pkgs; };
|
|
defaultPackage = packages."0.9.1";
|
|
apps.zig = flake-utils.lib.mkApp { drv = defaultPackage; };
|
|
defaultApp = apps.zig;
|
|
});
|
|
}
|