diff options
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..9fa551a --- /dev/null +++ b/default.nix @@ -0,0 +1,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" + ) ./.; + }; +} |