mirror of
https://github.com/nix-community/emacs-overlay.git
synced 2025-12-06 10:41:31 -08:00
Jobsets for cross building emacsen (#231)
* Jobsets for cross building emacsen * hydra: bump to nixos-22.05
This commit is contained in:
parent
5d793f134d
commit
b51bea5037
2 changed files with 37 additions and 0 deletions
|
|
@ -46,6 +46,18 @@ let
|
|||
descriptionNote = "emacs";
|
||||
};
|
||||
|
||||
unstable-cross = mkJobset {
|
||||
nixpkgsRelease = "nixos-unstable";
|
||||
nixFile = "emacsen-cross.nix";
|
||||
descriptionNote = "emacs cross builds";
|
||||
};
|
||||
|
||||
stable-cross = mkJobset {
|
||||
nixpkgsRelease = "nixos-22.05";
|
||||
nixFile = "emacsen-cross.nix";
|
||||
descriptionNote = "emacs cross builds";
|
||||
};
|
||||
|
||||
unstable-pkgs = mkJobset {
|
||||
nixpkgsRelease = "nixos-unstable";
|
||||
nixFile = "packages.nix";
|
||||
|
|
|
|||
25
hydra/emacsen-cross.nix
Normal file
25
hydra/emacsen-cross.nix
Normal file
|
|
@ -0,0 +1,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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue