Skip to content

Commit

Permalink
release.nix: Build both mac and linux by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-abrar committed Feb 6, 2022
1 parent 0fa1571 commit 54c5b5b
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions release.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{ system ? builtins.currentSystem }:
let self = import ./. {};
ci = self.ci;
in
{}
// (if system == "x86_64-darwin" then ci.mac else {})
// (if system == "x86_64-linux" then ci.linux else {})
{ supportedSystems ? ["x86_64-linux" "x86_64-darwin"] }:
let pkgs = (import ./.obelisk/impl {}).nixpkgs;
inherit (pkgs) lib;
buildForPlatform = system:
let self = import ./. { inherit system; };
ci = self.ci;
in lib.recurseIntoAttrs
({}
// (if system == "x86_64-darwin" then ci.mac else {})
// (if system == "x86_64-linux" then ci.linux else {}));
in lib.recurseIntoAttrs (lib.genAttrs supportedSystems buildForPlatform)

0 comments on commit 54c5b5b

Please sign in to comment.