diff --git a/.gitlab/darwin/nix/sources.json b/.gitlab/darwin/nix/sources.json index c9802d1f8ee484bd04d7a671d375d9d758dd80b7..b3d51db202817c789c87e9c785e9de6908b52cd5 100644 --- a/.gitlab/darwin/nix/sources.json +++ b/.gitlab/darwin/nix/sources.json @@ -12,15 +12,15 @@ "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" }, "nixpkgs": { - "branch": "master", + "branch": "nixos-unstable", "description": "Nix Packages collection", "homepage": "", "owner": "nixos", "repo": "nixpkgs", - "rev": "ce1aa29621356706746c53e2d480da7c68f6c972", - "sha256": "sha256:1sbs3gi1nf4rcbmnw69fw0fpvb3qvlsa84hqimv78vkpd6xb0bgg", + "rev": "73de017ef2d18a04ac4bfd0c02650007ccb31c2a", + "sha256": "1v9sy2i2dy3qksx4mf81gwzfl0jzpqccfkzq7fjxgq832f9d255i", "type": "tarball", - "url": "https://github.com/nixos/nixpkgs/archive/ce1aa29621356706746c53e2d480da7c68f6c972.tar.gz", + "url": "https://github.com/nixos/nixpkgs/archive/73de017ef2d18a04ac4bfd0c02650007ccb31c2a.tar.gz", "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" } } diff --git a/.gitlab/darwin/toolchain.nix b/.gitlab/darwin/toolchain.nix index 8915681fa89dae78f42669debfb085866cc5a3b8..64ce5a23f36aad27475fe1e04261b50b6a8c6ed1 100644 --- a/.gitlab/darwin/toolchain.nix +++ b/.gitlab/darwin/toolchain.nix @@ -4,6 +4,7 @@ let sources = import ./nix/sources.nix; nixpkgsSrc = sources.nixpkgs; pkgs = import nixpkgsSrc { inherit system; }; + hostPkgs = import nixpkgsSrc { }; in let @@ -13,23 +14,26 @@ let targetTriple = pkgs.stdenv.targetPlatform.config; ghcBindists = let version = ghc.version; in { - aarch64-darwin = pkgs.fetchurl { + aarch64-darwin = hostPkgs.fetchurl { url = "https://downloads.haskell.org/ghc/${version}/ghc-${version}-aarch64-apple-darwin.tar.xz"; - sha256 = "sha256-tQUHsingxBizLktswGAoi6lJf92RKWLjsHB9CisANlg="; + sha256 = "sha256-c1GTMJf3/yiW/t4QL532EswD5JVlgA4getkfsxj4TaA="; }; - x86_64-darwin = pkgs.fetchurl { + x86_64-darwin = hostPkgs.fetchurl { url = "https://downloads.haskell.org/ghc/${version}/ghc-${version}-x86_64-apple-darwin.tar.xz"; - sha256 = "sha256-OjXjVe+ZODDCc/hqtihqqz6CX25TKI0ZgORzkR5O3pQ="; + sha256 = "sha256-LrYniMG0phsvyW6dhQC+3ompvzcxnwAe6GezEqqzoTQ="; }; + }; ghc = pkgs.stdenv.mkDerivation rec { - version = "9.4.4"; + # Using 9.6.2 because of #24050 + version = "9.6.2"; name = "ghc"; src = ghcBindists.${pkgs.stdenv.hostPlatform.system}; configureFlags = [ "CC=/usr/bin/clang" "CLANG=/usr/bin/clang" + "AR=/usr/bin/ar" "LLC=${llvm}/bin/llc" "OPT=${llvm}/bin/opt" "CONF_CC_OPTS_STAGE2=--target=${targetTriple}" @@ -92,7 +96,7 @@ let }; fonts = with pkgs; makeFontsConf { fontDirectories = [ dejavu_fonts ]; }; - llvm = pkgs.llvm_11; + llvm = pkgs.llvm_15; in pkgs.writeTextFile { name = "toolchain";