1
0
Fork 0
mirror of https://github.com/mitchellh/zig-overlay.git synced 2025-05-08 18:46: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

19
flake.lock generated
View file

@ -54,7 +54,8 @@
"inputs": {
"flake-compat": "flake-compat",
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
"nixpkgs": "nixpkgs",
"systems": "systems_2"
}
},
"systems": {
@ -71,6 +72,22 @@
"repo": "default",
"type": "github"
}
},
"systems_2": {
"flake": false,
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
}
},
"root": "root",

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: