From cd9e2ff93e19c39121e618b6c3cebb7f2f404ab6 Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Thu, 12 Sep 2024 22:10:08 +0200 Subject: [PATCH] add nix-system --- flake.lock | 18 +++++++++++++++++- flake.nix | 6 +++--- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/flake.lock b/flake.lock index 140789f..30f83f7 100644 --- a/flake.lock +++ b/flake.lock @@ -18,7 +18,23 @@ }, "root": { "inputs": { - "nixpkgs": "nixpkgs" + "nixpkgs": "nixpkgs", + "systems": "systems" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" } } }, diff --git a/flake.nix b/flake.nix index 50ba1dd..11dcae0 100644 --- a/flake.nix +++ b/flake.nix @@ -3,11 +3,11 @@ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + systems.url = "github:nix-systems/default"; }; - outputs = {nixpkgs, ...}: let - systems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; - forEachSystem = nixpkgs.lib.genAttrs systems; + outputs = { nixpkgs, systems, ... }: let + forEachSystem = nixpkgs.lib.genAttrs (import systems); pkgsForEach = nixpkgs.legacyPackages; enginesForEach = import ./engine.nix; in {