summary refs log tree commit diff
path: root/flake.nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-10-15 18:17:21 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-02-05 23:15:18 +0100
commit7ff2e743e81214665e80dba3462292019999a45a (patch)
tree47dfc315f0a9876f7422fe0a10935840596c971d /flake.nix
parent0bf1ab421bb166cba1e4aa4f28ea17f2184f9215 (diff)
downloadnixpkgs-7ff2e743e81214665e80dba3462292019999a45a.tar
nixpkgs-7ff2e743e81214665e80dba3462292019999a45a.tar.gz
nixpkgs-7ff2e743e81214665e80dba3462292019999a45a.tar.bz2
nixpkgs-7ff2e743e81214665e80dba3462292019999a45a.tar.lz
nixpkgs-7ff2e743e81214665e80dba3462292019999a45a.tar.xz
nixpkgs-7ff2e743e81214665e80dba3462292019999a45a.tar.zst
nixpkgs-7ff2e743e81214665e80dba3462292019999a45a.zip
flake.nix: Support more systems
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index 599aa0352b7..3f9e22bdae0 100644
--- a/flake.nix
+++ b/flake.nix
@@ -5,10 +5,17 @@
 
   outputs = { self }:
     let
+
       jobs = import ./pkgs/top-level/release.nix {
         nixpkgs = self;
       };
+
       lib = import ./lib;
+
+      systems = [ "x86_64-linux" "i686-linux" "x86_64-darwin" "aarch64-linux" ];
+
+      forAllSystems = f: lib.genAttrs systems (system: f system);
+
     in
     {
       lib = lib // {
@@ -32,7 +39,7 @@
         }).nixos.manual.x86_64-linux;
       };
 
-      legacyPackages = import ./. { system = "x86_64-linux"; };
+      legacyPackages = forAllSystems (system: import ./. { inherit system; });
 
       nixosModules = {
         notDetected = ./nixos/modules/installer/scan/not-detected.nix;