1
0
Fork 0
mirror of https://github.com/mitchellh/zig-overlay.git synced 2025-05-08 18:46:02 +03:00

Initial commit based on original arqv repository

This commit is contained in:
Mitchell Hashimoto 2022-08-22 15:56:44 -07:00
commit 223a4e3b2c
No known key found for this signature in database
GPG key ID: 523D5DC389D273BC
8 changed files with 2754 additions and 0 deletions

21
flake.nix Normal file
View file

@ -0,0 +1,21 @@
{
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.7.1";
apps.zig = flake-utils.lib.mkApp { drv = defaultPackage; };
defaultApp = apps.zig;
});
}