aboutsummaryrefslogtreecommitdiff
path: root/default.nix
blob: 9fa551a1062a2ecdf9f1ea20faa78d908f3ad501 (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
26
27
28
29
{ lib, nix-gitignore, emacsPackages }:
let
  inherit (emacsPackages) trivialBuild;
  flakeRoot = toString ../.;
in
lib.recurseIntoAttrs rec {

  git-email-full = trivialBuild rec {
    pname = "git-email-full";
    version = "git";
    src = nix-gitignore.gitignoreSource (flakeRoot + ".gitignore") ./.;
    packageRequires = with emacsPackages; [
      magit
      transient
      notmuch
    ];
  };

  git-email = trivialBuild rec {
    pname = "git-email";
    version = "git";
    src = builtins.filterSource
      (path: type:
        baseNameOf path != "git-email-magit.el" &&
        baseNameOf path != "git-email-notmuch.el" &&
        baseNameOf path != "git-email-gnus.el"
      ) ./.;
  };
}