1
0
Fork 0
mirror of https://github.com/mitchellh/zig-overlay.git synced 2025-05-09 11:06:02 +03:00

flake: inputs: employ nix-systems pattern

This commit is contained in:
Jacob Birkett 2025-04-23 22:56:47 -07:00
parent df1b0aae2c
commit ee9cba5c35
2 changed files with 24 additions and 3 deletions

View file

@ -3,6 +3,10 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
systems = {
url = "github:nix-systems/default";
flake = false;
};
flake-utils.url = "github:numtide/flake-utils";
# Used for shell.nix
@ -15,11 +19,11 @@
outputs = {
self,
nixpkgs,
systems,
flake-utils,
...
}: let
systems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
outputs = flake-utils.lib.eachSystem systems (system: let
outputs = flake-utils.lib.eachSystem (import systems) (system: let
pkgs = nixpkgs.legacyPackages.${system};
in rec {
# The packages exported by the Flake: