Skip to content

Commit

Permalink
Fix build of macOS binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
amesgen committed Oct 16, 2021
1 parent 560e2d3 commit 2dbb129
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
include:
- os: ubuntu-latest
targetOs: Linux
- os: macOS-latest
- os: macOS-11
targetOs: macOS
- os: ubuntu-latest
targetOs: Windows
Expand Down Expand Up @@ -46,7 +46,8 @@ jobs:
matrix:
os:
- ubuntu-latest
- macOS-latest
- macOS-10.15
- macOS-11
- windows-latest
name: Test built binaries
runs-on: ${{ matrix.os }}
Expand Down
17 changes: 15 additions & 2 deletions nix/pkgs.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
let
macdylibbundler = self: super: {
macdylibbundler = super.macdylibbundler.overrideAttrs (old: rec {
version = "1.0.0";
src = super.fetchFromGitHub {
owner = "auriamg";
repo = "macdylibbundler";
rev = version;
sha256 = "02w04qvaf9v8yw8bgncx5qj3jx08xdfa855isvq92q27hsb8m8hv";
};
});
};
sources = import ./sources.nix { };
haskellNix = import sources.haskellNix { };
pkgs = import haskellNix.sources.nixpkgs-unstable haskellNix.nixpkgsArgs;
in pkgs
inherit (haskellNix) nixpkgsArgs;
in
import haskellNix.sources.nixpkgs-unstable
(nixpkgsArgs // { overlays = nixpkgsArgs.overlays ++ [ macdylibbundler ]; })

0 comments on commit 2dbb129

Please sign in to comment.