about summary refs log tree commit diff
path: root/overlays/patches/emacs/overlay/hydra/emacsen-cross.nix
blob: a3be23ab2bade3767be38bd9aec40f15fe13183a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ nixpkgs }:
let
  crossTargets = [ "aarch64-multiplatform" ];
  pkgs = import nixpkgs {
    overlays = [
      (import ../default.nix)
    ];
  };
  inherit (pkgs) lib;
in
lib.fold lib.recursiveUpdate { }
  (builtins.map
    (target:
      let
        targetPkgs = pkgs.pkgsCross.${target};
      in
      lib.mapAttrs' (name: job: lib.nameValuePair "${name}-${target}" job)
        ({
          inherit (targetPkgs) emacsUnstable emacsUnstable-nox;
          inherit (targetPkgs) emacsGit emacsGit-nox;
          inherit (targetPkgs) emacsPgtk;
        } // lib.optionalAttrs (lib.hasAttr "libgccjit" targetPkgs) {
          inherit (targetPkgs) emacsNativeComp emacsGitNativeComp emacsPgtkNativeComp;
        }))
    crossTargets)