build on different systems
1 files changed, 7 insertions(+), 5 deletions(-)

M release.nix
M release.nix +7 -5
@@ 1,10 1,12 @@ 
-{ nixpkgs, system
+{ nixpkgs
 , doHydra ? true }:
 
 let
-  pkgs = import nixpkgs { inherit system; };
+  pkgs = import nixpkgs {};
+  systems = [ "x86_64-linux" "i686-linux" "x86_64-darwin" ];
 in {
-  build = import ./default.nix {
-    inherit pkgs doHydra;
-  };
+  build = pkgs.lib.genAttrs systems (system: import ./default.nix {
+    pkgs = import nixpkgs { inherit system; };
+    inherit doHydra;
+  });
 }