# HG changeset patch # User Robin Stumm # Date 1490444855 -3600 # Sat Mar 25 13:27:35 2017 +0100 # Node ID c0c8eb23a3bb0c6917589e2d1f5f34aa216ee51f # Parent 04c003d6935df75be44df9098bfd10454553a441 build on different systems diff --git a/release.nix b/release.nix --- a/release.nix +++ b/release.nix @@ -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; + }); }