diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-10-15 18:17:21 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-02-05 23:15:18 +0100 |
commit | 7ff2e743e81214665e80dba3462292019999a45a (patch) | |
tree | 47dfc315f0a9876f7422fe0a10935840596c971d /flake.nix | |
parent | 0bf1ab421bb166cba1e4aa4f28ea17f2184f9215 (diff) | |
download | nixlib-7ff2e743e81214665e80dba3462292019999a45a.tar nixlib-7ff2e743e81214665e80dba3462292019999a45a.tar.gz nixlib-7ff2e743e81214665e80dba3462292019999a45a.tar.bz2 nixlib-7ff2e743e81214665e80dba3462292019999a45a.tar.lz nixlib-7ff2e743e81214665e80dba3462292019999a45a.tar.xz nixlib-7ff2e743e81214665e80dba3462292019999a45a.tar.zst nixlib-7ff2e743e81214665e80dba3462292019999a45a.zip |
flake.nix: Support more systems
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix index 599aa0352b70..3f9e22bdae0f 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; |