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:
commit
223a4e3b2c
8 changed files with 2754 additions and 0 deletions
21
flake.nix
Normal file
21
flake.nix
Normal 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;
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue