From 9d95751302377ac74b0bb05e09ef4b5f7831dc15 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 13 Apr 2021 23:55:31 +0200 Subject: feat(tools/emacs-pkgs): Add new builder for internal packages Adds a new internal builder that makes it possible to override the `emacsPackages` passed to our Emacs packages, which in turn makes it possible to inject them into the emacsPackages fixpoint and use them with features like Emacs native compilation. Change-Id: I80dad57115c83cf5693ae6ba4e4cf3105d103d5e Reviewed-on: https://cl.tvl.fyi/c/depot/+/3003 Tested-by: BuildkiteCI Reviewed-by: adisbladis Reviewed-by: grfn --- tools/emacs-pkgs/term-switcher/default.nix | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'tools/emacs-pkgs/term-switcher/default.nix') diff --git a/tools/emacs-pkgs/term-switcher/default.nix b/tools/emacs-pkgs/term-switcher/default.nix index 0c5e4c17cd18..e775de5cdbe8 100644 --- a/tools/emacs-pkgs/term-switcher/default.nix +++ b/tools/emacs-pkgs/term-switcher/default.nix @@ -1,14 +1,8 @@ -{ pkgs, ... }: +{ depot, ... }: -with pkgs.emacsPackages; - -melpaBuild rec { +depot.tools.emacs-pkgs.buildEmacsPackage { pname = "term-switcher"; version = "1.0"; src = ./term-switcher.el; - packageRequires = [ dash ivy s vterm ]; - - recipe = builtins.toFile "recipe" '' - (term-switcher :fetcher github :repo "tazjin/depot") - ''; + externalRequires = epkgs: with epkgs; [ dash ivy s vterm ]; } -- cgit 1.4.1