CI: build more for cachix
Exposes a bug: GTK3 (both emacs29-gtk3 and emacs29-pgtk) Emacs segfault compiling jupyter, while loading emacs-zmq. So don't enable those yet, need to debug that first...
This commit is contained in:
parent
5f7f3b9386
commit
10dae5d091
1 changed files with 22 additions and 10 deletions
32
flake.nix
32
flake.nix
|
|
@ -96,21 +96,33 @@
|
||||||
doomLocalDir = "~/.local/share/nix-doom-unstraightened";
|
doomLocalDir = "~/.local/share/nix-doom-unstraightened";
|
||||||
profileName = "";
|
profileName = "";
|
||||||
}).doomEmacs;
|
}).doomEmacs;
|
||||||
# TODO: cache more packages, cache for more Emacsen.
|
|
||||||
cachix-packages = let
|
cachix-packages = let
|
||||||
doomDirs = pkgs.callPackages ./build-helpers/doomdirs.nix {
|
doomDirs = pkgs.callPackages ./build-helpers/doomdirs.nix {
|
||||||
doomSource = doomemacs;
|
doomSource = doomemacs;
|
||||||
};
|
};
|
||||||
|
inherit (nixpkgs) lib;
|
||||||
|
depBuilds = lib.mapCartesianProduct
|
||||||
|
({doomDir, emacs}: (
|
||||||
|
lib.nameValuePair
|
||||||
|
"${emacs.name}-${doomDir.name}"
|
||||||
|
(doomFromPackages pkgs {
|
||||||
|
doomDir = doomDir.value;
|
||||||
|
emacs = emacs.value;
|
||||||
|
doomLocalDir = "~/.local/share/nix-doom-unstraightened";
|
||||||
|
experimentalFetchTree = true;
|
||||||
|
}).doomEmacs.emacsWithPackages.deps))
|
||||||
|
{
|
||||||
|
doomDir = lib.attrsToList doomDirs;
|
||||||
|
# TODO: emacs29-gtk3 and emacs29-pgtk fail to build jupyter (segfault in zmq)
|
||||||
|
emacs = lib.attrsToList {
|
||||||
|
inherit (pkgs) emacs29 emacs29-nox;
|
||||||
|
};
|
||||||
|
};
|
||||||
in
|
in
|
||||||
pkgs.linkFarm "unstraightened-cachix-packages" {
|
pkgs.linkFarm "unstraightened-cachix-packages" (
|
||||||
inherit doomemacs;
|
{ inherit doomemacs; }
|
||||||
full-emacs29 = (doomFromPackages pkgs {
|
// lib.listToAttrs depBuilds
|
||||||
emacs = pkgs.emacs29;
|
);
|
||||||
doomDir = doomDirs.allModules;
|
|
||||||
doomLocalDir = "~/.local/share/nix-doom-unstraightened";
|
|
||||||
experimentalFetchTree = true;
|
|
||||||
}).doomEmacs.emacsWithPackages.deps;
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
overlays.default = final: prev: {
|
overlays.default = final: prev: {
|
||||||
doomEmacs = args: (doomFromPackages final args).doomEmacs;
|
doomEmacs = args: (doomFromPackages final args).doomEmacs;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue