diff --git a/default.nix b/default.nix index 407e89f..77777a0 100644 --- a/default.nix +++ b/default.nix @@ -340,6 +340,8 @@ let # Use runCommand, not runCommandLocal, because makeBinaryWrapper pulls in a compiler. doomEmacs = runCommand "doom-emacs" { nativeBuildInputs = [ makeBinaryWrapper ]; + # Expose this so we can push it to cachix. + inherit emacsWithPackages; } '' if [[ -z "${profileName}" ]]; then profileArgs=() diff --git a/flake.nix b/flake.nix index 741f944..e709d59 100644 --- a/flake.nix +++ b/flake.nix @@ -111,12 +111,13 @@ }).doomEmacs; # TODO: cache more packages, cache for more Emacsen. cachix-packages = pkgs.linkFarm "unstraightened-cachix-packages" { + inherit doomemacs; full-emacs29 = (doomFromPackages pkgs { emacs = pkgs.emacs29; doomDir = ./doomdirs/minimal; doomLocalDir = "~/.local/share/nix-doom-unstraightened"; full = true; - }).doomEmacs; + }).doomEmacs.emacsWithPackages.deps; }; }); overlays.default = final: prev: {