2024-03-04 01:29:47 +11:00
|
|
|
{
|
|
|
|
|
inputs = {
|
|
|
|
|
nixpkgs.url = "nixpkgs";
|
|
|
|
|
doomemacs = {
|
|
|
|
|
url = "github:doomemacs/doomemacs";
|
|
|
|
|
flake = false;
|
|
|
|
|
};
|
2024-03-18 20:52:48 +11:00
|
|
|
emacs-overlay = {
|
|
|
|
|
url = "github:nix-community/emacs-overlay";
|
|
|
|
|
inputs = {
|
|
|
|
|
nixpkgs-stable.follows = "nixpkgs";
|
|
|
|
|
};
|
|
|
|
|
};
|
2024-03-04 01:29:47 +11:00
|
|
|
};
|
|
|
|
|
|
2024-04-06 23:41:35 +11:00
|
|
|
outputs = { doomemacs, nixpkgs, emacs-overlay, ... }: let
|
|
|
|
|
systems = [ "x86_64-linux" ];
|
|
|
|
|
perSystemPackages = f: nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system});
|
|
|
|
|
in {
|
|
|
|
|
packages = perSystemPackages (pkgs:
|
2024-03-04 01:29:47 +11:00
|
|
|
let
|
|
|
|
|
common = { doomSource = doomemacs; emacs = pkgs.emacs29-pgtk; };
|
2024-04-06 23:41:35 +11:00
|
|
|
pkgsWithEmacsOverlay = pkgs.extend emacs-overlay.overlays.package;
|
|
|
|
|
in {
|
2024-03-04 01:29:47 +11:00
|
|
|
# Current Doom + NixOS 23.11 requires emacs-overlay: Doom pins
|
|
|
|
|
# emacs-fish-completion, which moved from gitlab to github recently
|
|
|
|
|
# enough stable nixpkgs pulls it from the wrong source.
|
2024-04-07 14:12:53 +10:00
|
|
|
doom-minimal = pkgsWithEmacsOverlay.callPackage ./doom.nix (common // { doomDir = pkgs.emptyDirectory; });
|
|
|
|
|
doom-full = pkgsWithEmacsOverlay.callPackage ./doom.nix (common // { full = true; doomDir = pkgs.emptyDirectory; });
|
2024-04-06 23:41:35 +11:00
|
|
|
doom-example = pkgsWithEmacsOverlay.callPackage ./doom.nix (common // { doomDir = ./example; });
|
2024-04-06 23:52:19 +11:00
|
|
|
doomEmacs = args: pkgsWithEmacsOverlay.callPackage ./doom.nix (common // args);
|
2024-04-06 23:41:35 +11:00
|
|
|
});
|
2024-03-04 01:29:47 +11:00
|
|
|
};
|
|
|
|
|
}
|